diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 7c50f48e..8bbc440d 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -244,7 +244,7 @@
-
+
{{ i18n "pages.inbounds.enable" }}
@@ -314,7 +314,7 @@
-
+
@@ -1034,9 +1034,9 @@
newDbInbound = this.checkFallback(dbInbound);
infoModal.show(newDbInbound, index);
},
- switchEnable(dbInboundId) {
+ switchEnable(dbInboundId,state) {
dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
- dbInbound.enable = !dbInbound.enable;
+ dbInbound.enable = state;
this.submit(`/panel/inbound/update/${dbInboundId}`, dbInbound);
},
async switchEnableClient(dbInboundId, client) {