diff options
| author | MHSanaei <mc.sanaei@gmail.com> | 2023-02-12 16:50:09 +0300 |
|---|---|---|
| committer | MHSanaei <mc.sanaei@gmail.com> | 2023-02-12 16:50:09 +0300 |
| commit | 6d28c39ae845cb0ac6e35562aaa52d8219b95bc8 (patch) | |
| tree | bb80e5bffe67919a772694196dc80e1a99b47077 /web/html/xui/inbounds_client_row.html | |
| parent | 920259b6f8345f30c6a4bd40205c18a37b867f0f (diff) | |
en lang edit, new designed
Diffstat (limited to 'web/html/xui/inbounds_client_row.html')
| -rw-r--r-- | web/html/xui/inbounds_client_row.html | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/web/html/xui/inbounds_client_row.html b/web/html/xui/inbounds_client_row.html index fa8621a8..7453d062 100644 --- a/web/html/xui/inbounds_client_row.html +++ b/web/html/xui/inbounds_client_row.html @@ -1,8 +1,20 @@ -{{define "form/client_row"}} +{{define "client_row"}} +<template slot="actions" slot-scope="text, client, index"> + <a-dropdown> + <a-icon @click="e => e.preventDefault()" type="menu"></a-icon> + <template #overlay> + <a-menu> + <a-menu-item v-if="record.hasLink()" @click="showQrcode(record,index);"><a-icon type="qrcode"></a-icon>{{ i18n "qrCode" }}</a-menu-item> + <a-menu-item @click="showInfo(record,index);"><a-icon type="info-circle"></a-icon>{{ i18n "info" }}</a-menu-item> + <a-menu-item @click="resetClientTraffic(client,record,$event)" v-if="client.email != ''"><a-icon type="retweet"></a-icon>{{ i18n "pages.inbounds.resetTraffic" }}</a-menu-item> + </a-menu> + </template> + </a-dropdown> +</template> <template slot="client" slot-scope="text, client"> [[ client.email ]] - <a-tag v-if="!isClientEnabled(record, client.email)" color="red"> expired</a-tag> -</template> + <a-tag v-if="!isClientEnabled(record, client.email)" color="red">{{ i18n "disabled" }}</a-tag> +</template> <template slot="traffic" slot-scope="text, client"> <a-tag v-if="client._totalGB === 0" color="blue">{{ i18n "used" }}: [[ sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]]</a-tag> <a-tag v-if="client._totalGB > 0 && !isTrafficExhausted(record, client.email)" color="green">{{ i18n "used" }}: [[ sizeFormat(getUpStats(record, client.email) + getDownStats(record, client.email)) ]] / [[client._totalGB]]GB</a-tag> |
