From 415aa4bc8760fd7afd5f082e0e80bc7f4dc06ef8 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 13 Aug 2024 08:55:49 +0000 Subject: [PATCH] refactor(01): use new toggle button --- .../01_branch-management/FormBank.vue | 8 +-- src/pages/01_branch-management/MainPage.vue | 57 ++++++++++--------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/src/components/01_branch-management/FormBank.vue b/src/components/01_branch-management/FormBank.vue index 183b2434..dbc1dd47 100644 --- a/src/components/01_branch-management/FormBank.vue +++ b/src/components/01_branch-management/FormBank.vue @@ -6,6 +6,7 @@ import { onMounted, ref, watch } from 'vue'; import { deleteItem } from 'stores/utils'; import { QSelect } from 'quasar'; import { AddButton, DeleteButton } from 'components/button'; +import ToggleButton from '../button/ToggleButton.vue'; const optionStore = useOptionStore(); @@ -113,13 +114,10 @@ watch(
{{ $t('accountStatus') }} - { -
- + + + {{ + props.row.status !== 'INACTIVE' + ? $t('switchOnLabel') + : $t('switchOffLabel') + }} +
@@ -1498,16 +1501,15 @@ watch(currentHq, () => { -
- + + + {{ + props.row.status !== 'INACTIVE' + ? $t('switchOnLabel') + : $t('switchOffLabel') + }} +
@@ -2017,11 +2022,9 @@ watch(currentHq, () => { -