mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-08 06:04:10 +00:00
Fix inbound email options on add modal
This commit is contained in:
parent
6eba2ac375
commit
39ba517d9f
2 changed files with 12 additions and 4 deletions
|
|
@ -98,9 +98,9 @@
|
||||||
return app.datepicker;
|
return app.datepicker;
|
||||||
},
|
},
|
||||||
get isTrafficExhausted() {
|
get isTrafficExhausted() {
|
||||||
if (!clientStats) return false
|
if (!this.clientStats) return false
|
||||||
if (clientStats.total <= 0) return false
|
if (this.clientStats.total <= 0) return false
|
||||||
if (clientStats.up + clientStats.down < clientStats.total) return false
|
if (this.clientStats.up + this.clientStats.down < this.clientStats.total) return false
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
get isExpiry() {
|
get isExpiry() {
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,14 @@
|
||||||
set delayedExpireDays(days) {
|
set delayedExpireDays(days) {
|
||||||
this.client.expiryTime = -86400000 * days;
|
this.client.expiryTime = -86400000 * days;
|
||||||
},
|
},
|
||||||
|
get emailOptions() {
|
||||||
|
const options = Array.isArray(app.clientEmailOptions) ? [...app.clientEmailOptions] : [];
|
||||||
|
const email = this.client?.email;
|
||||||
|
if (email && !options.includes(email)) {
|
||||||
|
options.unshift(email);
|
||||||
|
}
|
||||||
|
return options;
|
||||||
|
},
|
||||||
get externalProxy() {
|
get externalProxy() {
|
||||||
return this.inbound.stream.externalProxy.length > 0;
|
return this.inbound.stream.externalProxy.length > 0;
|
||||||
},
|
},
|
||||||
|
|
@ -296,4 +304,4 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue