Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo3ein <ho3ein.sanaei@gmail.com>2023-05-13 12:48:36 +0300
committerGitHub <noreply@github.com>2023-05-13 12:48:36 +0300
commit5468069befd602a7ae51deb5b76150ee16d426d6 (patch)
treea41b4492b37e52e033b2f4e027da05ce8893ae50 /web/html/common
parent3bec9ee2737d0a8c49f4d705f1d8c8925bb8a2a8 (diff)
parent0cce35784eb2ab8ce42e88bdf63e0284254d2e14 (diff)
Merge pull request #420 from hamid-gh98/main
[fix] russia domains in settings and More....
Diffstat (limited to 'web/html/common')
-rw-r--r--web/html/common/qrcode_modal.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html
index 2bd2f00f..855c349a 100644
--- a/web/html/common/qrcode_modal.html
+++ b/web/html/common/qrcode_modal.html
@@ -7,7 +7,10 @@
<a-tag color="green" style="margin-bottom: 10px;display: block;text-align: center;">
{{ i18n "pages.inbounds.clickOnQRcode" }}
</a-tag>
- <canvas @click="copyToClipboard()" id="qrCode" style="width: 100%; height: 100%;"></canvas>
+ <a-tag v-if="qrModal.clientName" color="orange" style="margin-bottom: 10px;display: block;text-align: center;">
+ {{ i18n "pages.inbounds.email" }}: "[[ qrModal.clientName ]]"
+ </a-tag>
+ <canvas @click="copyToClipboard()" id="qrCode" style="width: 100%; height: 100%; margin-top: 10px;"></canvas>
</a-modal>
<script>
@@ -18,14 +21,16 @@
inbound: new Inbound(),
dbInbound: new DBInbound(),
copyText: '',
+ clientName: null,
qrcode: null,
clipboard: null,
visible: false,
- show: function (title = '', content = '', dbInbound = new DBInbound(), copyText = '') {
+ show: function (title = '', content = '', dbInbound = new DBInbound(), copyText = '', clientName = null) {
this.title = title;
this.content = content;
this.dbInbound = dbInbound;
this.inbound = dbInbound.toInbound();
+ this.clientName = clientName;
if (ObjectUtil.isEmpty(copyText)) {
this.copyText = content;
} else {
@@ -50,6 +55,7 @@
};
const qrModalApp = new Vue({
+ delimiters: ['[[', ']]'],
el: '#qrcode-modal',
data: {
qrModal: qrModal,