diff options
Diffstat (limited to 'web/html/xui')
| -rw-r--r-- | web/html/xui/form/client.html | 4 | ||||
| -rw-r--r-- | web/html/xui/inbounds.html | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html index 63cb8aef..d147fbf7 100644 --- a/web/html/xui/form/client.html +++ b/web/html/xui/form/client.html @@ -63,7 +63,7 @@ </template> <a-input v-model.trim="client.tgId"></a-input> </a-form-item> - <a-form-item> + <a-form-item v-if="app.ipLimitEnable"> <template slot="label"> <a-tooltip> <template slot="title"> @@ -75,7 +75,7 @@ </template> <a-input-number v-model="client.limitIp" min="0"></a-input-number> </a-form-item> - <a-form-item v-if="client.email && client.limitIp > 0 && isEdit"> + <a-form-item v-if="app.ipLimitEnable && client.email && isEdit"> <template slot="label"> <a-tooltip> <template slot="title"> diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index aeab3db3..a58372ef 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -571,6 +571,7 @@ datepicker: 'gregorian', tgBotEnable: false, showAlert: false, + ipLimitEnable: false, pageSize: 0, isMobile: window.innerWidth <= 768, }, @@ -618,6 +619,7 @@ this.pageSize = pageSize; this.remarkModel = remarkModel; this.datepicker = datepicker; + this.ipLimitEnable = ipLimitEnable; } }, setInbounds(dbInbounds) { |
