diff options
| author | Sanaei <ho3ein.sanaei@gmail.com> | 2025-03-07 14:40:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-07 14:40:35 +0300 |
| commit | 42fa64770bab9f9fb52e0cdb6d5dd82d66f19c35 (patch) | |
| tree | 17d8a98faecccbda02b98ede48adf020d5e8d2f9 /web/html/xui/form/client.html | |
| parent | 2d8cca3a2ec1ae9034b7bc28a2fb5f2260f43e1a (diff) | |
| parent | 0a207b8a2c0629b7f1996025a40a10fbe58d05d0 (diff) | |
Merge pull request #2732 from shishkevichd/refactor/refactor-1
Code refactoring
Diffstat (limited to 'web/html/xui/form/client.html')
| -rw-r--r-- | web/html/xui/form/client.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html index 0b894f01..c2bcace1 100644 --- a/web/html/xui/form/client.html +++ b/web/html/xui/form/client.html @@ -126,10 +126,10 @@ <a-input-number v-model.number="client._totalGB" :min="0"></a-input-number> </a-form-item> <a-form-item v-if="isEdit && clientStats" label='{{ i18n "usage" }}'> - <a-tag :color="clientUsageColor(clientStats, app.trafficDiff)"> - [[ sizeFormat(clientStats.up) ]] / - [[ sizeFormat(clientStats.down) ]] - ([[ sizeFormat(clientStats.up + clientStats.down) ]]) + <a-tag :color="ColorUtils.clientUsageColor(clientStats, app.trafficDiff)"> + [[ SizeFormatter.sizeFormat(clientStats.up) ]] / + [[ SizeFormatter.sizeFormat(clientStats.down) ]] + ([[ SizeFormatter.sizeFormat(clientStats.up + clientStats.down) ]]) </a-tag> <a-tooltip> <template slot="title">{{ i18n "pages.inbounds.resetTraffic" }}</template> |
