[client] add disable-enable feature

This commit is contained in:
Alireza Ahmadi
2023-03-29 00:13:37 +02:00
parent 8f0a701d9e
commit 47f75f6382
4 changed files with 26 additions and 2 deletions

View File

@@ -21,6 +21,9 @@
<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>