diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index e697b8a1..2792eb75 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -99,7 +99,7 @@
:dropdown-class-name="siderDrawer.isDarkTheme ? 'ant-card-dark' : ''">
[[ key ]]s
-
+
@@ -331,6 +331,7 @@
defaultKey: '',
clientCount: {},
isRefreshEnabled: localStorage.getItem("isRefreshEnabled") === "true" ? true : false,
+ refreshing: false,
refreshInterval: Number(localStorage.getItem("refreshInterval")) || 5000,
},
methods: {
@@ -338,11 +339,13 @@
this.spinning = spinning;
},
async getDBInbounds() {
+ this.refreshing = true;
const msg = await HttpUtil.post('/xui/inbound/list');
if (!msg.success) {
return;
}
this.setInbounds(msg.obj);
+ this.refreshing = false;
},
async getDefaultSettings() {
const msg = await HttpUtil.post('/xui/setting/defaultSettings');
@@ -818,6 +821,13 @@
changeRefreshInterval(){
localStorage.setItem("refreshInterval", this.refreshInterval);
},
+ async manualRefresh(){
+ if(!this.refreshing){
+ this.spinning = true;
+ await this.getDBInbounds();
+ this.spinning = false;
+ }
+ },
},
watch: {
searchKey: debounce(function (newVal) {