diff options
Diffstat (limited to 'web/html/xui/inbound_client_table.html')
| -rw-r--r-- | web/html/xui/inbound_client_table.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html index 4d7bd932..6100cd9b 100644 --- a/web/html/xui/inbound_client_table.html +++ b/web/html/xui/inbound_client_table.html @@ -21,9 +21,12 @@ <a-icon style="font-size: 24px;" type="delete" v-if="isRemovable(record.id)" @click="delClient(record.id,client)"></a-icon> </a-tooltip> </template> +<template slot="enable" slot-scope="text, client, index"> + <a-switch v-model="client.enable" @change="switchEnableClient(record.id,client)"></a-switch> +</template> <template slot="client" slot-scope="text, client"> [[ client.email ]] - <a-tag v-if="!isClientEnabled(record, client.email)" color="red">{{ i18n "disabled" }}</a-tag> + <a-tag v-if="!isClientEnabled(record, client.email)" color="red">{{ i18n "depleted" }}</a-tag> </template> <template slot="traffic" slot-scope="text, client"> <a-tag color="blue">[[ sizeFormat(getUpStats(record, client.email)) ]] / [[ sizeFormat(getDownStats(record, client.email)) ]]</a-tag> @@ -34,11 +37,12 @@ <a-tag v-else color="green">{{ i18n "indefinite" }}</a-tag> </template> <template slot="expiryTime" slot-scope="text, client, index"> - <template v-if="client._expiryTime > 0"> + <template v-if="client.expiryTime > 0"> <a-tag :color="isExpiry(record, index)? 'red' : 'blue'"> [[ DateUtil.formatMillis(client._expiryTime) ]] </a-tag> </template> + <a-tag v-else-if="client.expiryTime < 0" color="cyan">[[ client._expiryTime ]] {{ i18n "pages.client.days" }}</a-tag> <a-tag v-else color="green">{{ i18n "indefinite" }}</a-tag> </template> {{end}}
\ No newline at end of file |
