|
@@ -995,11 +995,19 @@
|
|
|
}
|
|
|
return newDbInbound;
|
|
|
},
|
|
|
- showQrcode(dbInbound, clientIndex) {
|
|
|
+ showQrcode(dbInboundId, client) {
|
|
|
+ dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
|
|
|
+ inbound = dbInbound.toInbound();
|
|
|
+ clients = this.getClients(dbInbound.protocol, inbound.settings);
|
|
|
+ index = this.findIndexOfClient(dbInbound.protocol, clients, client);
|
|
|
newDbInbound = this.checkFallback(dbInbound);
|
|
|
- qrModal.show('{{ i18n "qrCode"}}', newDbInbound, clientIndex);
|
|
|
+ qrModal.show('{{ i18n "qrCode"}}', newDbInbound, index);
|
|
|
},
|
|
|
- showInfo(dbInbound, index) {
|
|
|
+ showInfo(dbInboundId, client) {
|
|
|
+ dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
|
|
|
+ inbound = dbInbound.toInbound();
|
|
|
+ clients = this.getClients(dbInbound.protocol, inbound.settings);
|
|
|
+ index = this.findIndexOfClient(dbInbound.protocol, clients, client);
|
|
|
newDbInbound = this.checkFallback(dbInbound);
|
|
|
infoModal.show(newDbInbound, index);
|
|
|
},
|
|
@@ -1163,8 +1171,8 @@
|
|
|
isClientOnline(email) {
|
|
|
return this.onlineClients.includes(email);
|
|
|
},
|
|
|
- isRemovable(dbInbound_id) {
|
|
|
- return this.getInboundClients(this.dbInbounds.find(row => row.id === dbInbound_id)).length > 1;
|
|
|
+ isRemovable(dbInboundId) {
|
|
|
+ return this.getInboundClients(this.dbInbounds.find(row => row.id === dbInboundId)).length > 1
|
|
|
},
|
|
|
inboundLinks(dbInboundId) {
|
|
|
dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
|