diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-25 18:13:37 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-25 18:13:37 +0300 |
| commit | 379451135decb1a90bf9d56c359d4ae5d88213ea (patch) | |
| tree | 6ee37fd3cc3ca7b1dc1dc6eee275940f8a43a6c2 /web/html/xui/inbounds.html | |
| parent | bc06dbab21df01ede095d850a41ac769ae582469 (diff) | |
[feature] delete depleted clients
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbounds.html')
| -rw-r--r-- | web/html/xui/inbounds.html | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 483b0030..275b1468 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -82,6 +82,10 @@ <a-icon type="file-done"></a-icon> {{ i18n "pages.inbounds.resetAllClientTraffics" }} </a-menu-item> + <a-menu-item key="delDepletedClients"> + <a-icon type="rest"></a-icon> + {{ i18n "pages.inbounds.delDepletedClients" }} + </a-menu-item> </a-menu> </a-dropdown> </div> @@ -122,6 +126,10 @@ <a-icon type="export"></a-icon> {{ i18n "pages.inbounds.export"}} </a-menu-item> + <a-menu-item key="delDepletedClients"> + <a-icon type="rest"></a-icon> + {{ i18n "pages.inbounds.delDepletedClients" }} + </a-menu-item> </template> <template v-else> <a-menu-item key="showInfo"> @@ -416,7 +424,8 @@ case "resetClients": this.resetAllClientTraffics(-1); break; - case "": + case "delDepletedClients": + this.delDepletedClients(-1) break; } }, @@ -452,6 +461,9 @@ case "delete": this.delInbound(dbInbound.id); break; + case "delDepletedClients": + this.delDepletedClients(dbInbound.id) + break; } }, openCloneInbound(dbInbound) { @@ -730,6 +742,16 @@ onOk: () => this.submit('/xui/inbound/resetAllClientTraffics/' + dbInboundId), }) }, + delDepletedClients(dbInboundId) { + this.$confirm({ + title: '{{ i18n "pages.inbounds.delDepletedClientsTitle"}}', + content: '{{ i18n "pages.inbounds.delDepletedClientsContent"}}', + class: siderDrawer.isDarkTheme ? darkClass : '', + okText: '{{ i18n "reset"}}', + cancelText: '{{ i18n "cancel"}}', + onOk: () => this.submit('/xui/inbound/delDepletedClients/' + dbInboundId), + }) + }, isExpiry(dbInbound, index) { return dbInbound.toInbound().isExpiry(index) }, |
