diff options
Diffstat (limited to 'web/html/modals/xray_fakedns_modal.html')
| -rw-r--r-- | web/html/modals/xray_fakedns_modal.html | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/web/html/modals/xray_fakedns_modal.html b/web/html/modals/xray_fakedns_modal.html index f1f4429c..20768f0b 100644 --- a/web/html/modals/xray_fakedns_modal.html +++ b/web/html/modals/xray_fakedns_modal.html @@ -23,11 +23,19 @@ okText: '{{ i18n "confirm" }}', isEdit: false, confirm: null, - fakeDns: { ...fakednsDefaultData }, + fakeDns: { + ...fakednsDefaultData + }, ok() { ObjectUtil.execute(fakednsModal.confirm, fakednsModal.fakeDns); }, - show({ title = '', okText = '{{ i18n "confirm" }}', fakeDns, confirm = (fakeDns) => { }, isEdit = false }) { + show({ + title = '', + okText = '{{ i18n "confirm" }}', + fakeDns, + confirm = (fakeDns) => {}, + isEdit = false + }) { this.title = title; this.okText = okText; this.confirm = confirm; @@ -35,7 +43,9 @@ if (isEdit) { this.fakeDns = fakeDns; } else { - this.fakeDns = { ...fakednsDefaultData } + this.fakeDns = { + ...fakednsDefaultData + } } this.isEdit = isEdit; }, @@ -51,6 +61,5 @@ fakednsModal: fakednsModal, } }); - </script> {{end}}
\ No newline at end of file |
