Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza7@gmail.com>2024-03-12 23:53:32 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2024-03-12 23:53:32 +0300
commit18af7047f8d37e31c6f04362019e1a45c1f4b41d (patch)
tree6011850f0ba353d197511835bcd57a6cbb513ee8 /web/html
parente7ae846823ffb787ebb51fdf560562231af50cab (diff)
ip limit only if log is available
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/form/client.html4
-rw-r--r--web/html/xui/inbounds.html2
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) {