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:
Diffstat (limited to 'web/html/modals/xray_dns_modal.html')
-rw-r--r--web/html/modals/xray_dns_modal.html18
1 files changed, 13 insertions, 5 deletions
diff --git a/web/html/modals/xray_dns_modal.html b/web/html/modals/xray_dns_modal.html
index 97970555..0d02a71d 100644
--- a/web/html/modals/xray_dns_modal.html
+++ b/web/html/modals/xray_dns_modal.html
@@ -75,15 +75,19 @@
okText: '{{ i18n "confirm" }}',
isEdit: false,
confirm: null,
- dnsServer: { ...defaultDnsObject },
+ dnsServer: {
+ ...defaultDnsObject
+ },
ok() {
- ObjectUtil.execute(dnsModal.confirm, { ...dnsModal.dnsServer });
+ ObjectUtil.execute(dnsModal.confirm, {
+ ...dnsModal.dnsServer
+ });
},
show({
title = '',
okText = '{{ i18n "confirm" }}',
dnsServer,
- confirm = (dnsServer) => { },
+ confirm = (dnsServer) => {},
isEdit = false
}) {
this.title = title;
@@ -95,7 +99,9 @@
if (isEdit) {
switch (typeof dnsServer) {
case 'string':
- const dnsObj = { ...defaultDnsObject };
+ const dnsObj = {
+ ...defaultDnsObject
+ };
dnsObj.address = dnsServer;
@@ -106,7 +112,9 @@
break;
}
} else {
- this.dnsServer = { ...defaultDnsObject };
+ this.dnsServer = {
+ ...defaultDnsObject
+ };
this.dnsServer.domains = [];
this.dnsServer.expectIPs = [];