diff options
| author | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-04 21:20:16 +0300 |
|---|---|---|
| committer | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-04 21:20:16 +0300 |
| commit | a8b7063647c055988f3768a35af59ca391928b9b (patch) | |
| tree | f6038c94629ec22f6c4c7ce507ef96fc16e56518 /web/html | |
| parent | 729d8549e2b536a10c402a88e0d4cfde9e4baf3f (diff) | |
auto renew feature #1286
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/client_bulk_modal.html | 15 | ||||
| -rw-r--r-- | web/html/xui/client_modal.html | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index f758f627..9d79bee1 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -117,6 +117,18 @@ :dropdown-class-name="themeSwitcher.darkCardClass" v-model="clientsBulkModal.expiryTime" style="width: 300px;"></a-date-picker> </a-form-item> + <a-form-item v-if="clientsBulkModal.expiryTime != 0"> + <span slot="label"> + <span>{{ i18n "pages.client.renew" }}</span> + <a-tooltip> + <template slot="title"> + <span>{{ i18n "pages.client.renewDesc" }}</span> + </template> + <a-icon type="question-circle" theme="filled"></a-icon> + </a-tooltip> + </span> + <a-input-number v-model.number="clientsBulkModal.reset" :min="0"></a-input-number> + </a-form-item> </a-form> </a-modal> <script> @@ -142,6 +154,7 @@ tgId: "", flow: "", delayedStart: false, + reset: 0, ok() { clients = []; method = clientsBulkModal.emailMethod; @@ -170,6 +183,7 @@ if (clientsBulkModal.inbound.xtls) { newClient.flow = clientsBulkModal.flow; } + newClient.reset = clientsBulkModal.reset; clients.push(newClient); } ObjectUtil.execute(clientsBulkModal.confirm, clients, clientsBulkModal.dbInbound.id); @@ -199,6 +213,7 @@ this.dbInbound = new DBInbound(dbInbound); this.inbound = dbInbound.toInbound(); this.delayedStart = false; + this.reset = 0; }, newClient(protocol) { switch (protocol) { diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index b2c03129..d9e9a0a2 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -115,6 +115,12 @@ get statsColor() { return usageColor(clientStats.up + clientStats.down, app.trafficDiff, this.client.totalGB); }, + get delayedStart() { + return this.clientModal.delayedStart; + }, + set delayedStart(value) { + this.clientModal.delayedStart = value; + }, get delayedExpireDays() { return this.client && this.client.expiryTime < 0 ? this.client.expiryTime / -86400000 : 0; }, |
