diff options
Diffstat (limited to 'web/html/modals/inbound_modal.html')
| -rw-r--r-- | web/html/modals/inbound_modal.html | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html index aab1af6d..73918f60 100644 --- a/web/html/modals/inbound_modal.html +++ b/web/html/modals/inbound_modal.html @@ -23,7 +23,7 @@ okText = '{{ i18n "sure" }}', inbound = null, dbInbound = null, - confirm = (inbound, dbInbound) => { }, + confirm = (inbound, dbInbound) => {}, isEdit = false, }) { this.title = title; @@ -127,17 +127,17 @@ get client() { return inModal.inbound && inModal.inbound.clients && - inModal.inbound.clients.length > 0 - ? inModal.inbound.clients[0] - : null; + inModal.inbound.clients.length > 0 ? + inModal.inbound.clients[0] : + null; }, get datepicker() { return app.datepicker; }, get delayedExpireDays() { - return this.client && this.client.expiryTime < 0 - ? this.client.expiryTime / -86400000 - : 0; + return this.client && this.client.expiryTime < 0 ? + this.client.expiryTime / -86400000 : + 0; }, set delayedExpireDays(days) { this.client.expiryTime = -86400000 * days; @@ -147,14 +147,12 @@ }, set externalProxy(value) { if (value) { - inModal.inbound.stream.externalProxy = [ - { - forceTls: "same", - dest: window.location.hostname, - port: inModal.inbound.port, - remark: "", - }, - ]; + inModal.inbound.stream.externalProxy = [{ + forceTls: "same", + dest: window.location.hostname, + port: inModal.inbound.port, + remark: "", + }, ]; } else { inModal.inbound.stream.externalProxy = []; } @@ -182,8 +180,8 @@ ) { const hasVisionFlow = inModal.inbound.settings.vlesses.some( (c) => - c.flow === "xtls-rprx-vision" || - c.flow === "xtls-rprx-vision-udp443", + c.flow === "xtls-rprx-vision" || + c.flow === "xtls-rprx-vision-udp443", ); if ( hasVisionFlow && |
