[bug] fix delete/disable client

This commit is contained in:
Alireza Ahmadi
2023-05-03 11:30:31 +02:00
parent 2c5bb94894
commit 57a32ab524

View File

@@ -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);
},