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:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/inbounds.html24
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)
},