fix show client name in QR modal

This commit is contained in:
Hamidreza Ghavami 2023-05-12 21:57:34 +04:30
parent 8143379645
commit 09cd2248dc
No known key found for this signature in database
GPG key ID: 402C6797325182D9

View file

@ -696,8 +696,9 @@
} }
}, },
showQrcode(dbInbound, clientIndex) { showQrcode(dbInbound, clientIndex) {
const clientName = JSON.parse(dbInbound.settings).clients[clientIndex].email;
const link = dbInbound.genLink(clientIndex); const link = dbInbound.genLink(clientIndex);
qrModal.show('{{ i18n "qrCode"}}', link, dbInbound); qrModal.show('{{ i18n "qrCode"}}', link, dbInbound, '', clientName);
}, },
showInfo(dbInbound, index) { showInfo(dbInbound, index) {
infoModal.show(dbInbound, index); infoModal.show(dbInbound, index);