From 57a32ab524b9b406bbc3fba22e0c9c11ff72f61d Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Wed, 3 May 2023 11:30:31 +0200 Subject: [PATCH] [bug] fix delete/disable client --- web/html/xui/inbounds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 3a9279c4..632a1920 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -660,7 +660,7 @@ }, delClient(dbInboundId,client) { dbInbound = this.dbInbounds.find(row => row.id === dbInboundId); - clientId = clientId = getClientId(dbInbound.protocol,client);; + clientId = this.getClientId(dbInbound.protocol,client); this.$confirm({ title: '{{ i18n "pages.inbounds.deleteInbound"}}', content: '{{ i18n "pages.inbounds.deleteInboundContent"}}', @@ -704,7 +704,7 @@ clients = this.getClients(dbInbound.protocol, inbound.settings); index = this.findIndexOfClient(clients, client); clients[index].enable = !clients[index].enable; - clientId = getClientId(dbInbound.protocol,clients[index]); + clientId = this.getClientId(dbInbound.protocol,clients[index]); await this.updateClient(clients[index],dbInboundId, clientId); this.loading(false); },