From 3382e9eeca71189dee0434db621b6f9c2fee71a0 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 11 Jul 2024 15:35:44 +0700 Subject: [PATCH] =?UTF-8?q?restore=20=20=E0=B9=84=E0=B8=94=E0=B9=89?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B8=A5=E0=B8=B0=E0=B8=AD=E0=B8=B1=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_system/components/cardBackupRestore.vue | 3 ++- src/modules/04_system/stores/main.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/04_system/components/cardBackupRestore.vue b/src/modules/04_system/components/cardBackupRestore.vue index bdd83c23..cd7fa1ea 100644 --- a/src/modules/04_system/components/cardBackupRestore.vue +++ b/src/modules/04_system/components/cardBackupRestore.vue @@ -23,7 +23,7 @@ const { showLoader, hideLoader, date2Thai, dialogRemove, dialogConfirm } = useCounterMixin(); const { fetchListBackup, createBackUp, restore, deleteBackUp } = useDataStore(); const storeData = useDataStore(); -const { dataBackUp, backupRunTotal } = storeToRefs(storeData); +const { dataBackUp, backupRunTotal , restoreRunTotal } = storeToRefs(storeData); /** * props @@ -209,6 +209,7 @@ onMounted(async () => { dense flat round + :disable="restoreRunTotal !== 0 " icon="restore" color="primary" size="12px" diff --git a/src/modules/04_system/stores/main.ts b/src/modules/04_system/stores/main.ts index 4c25ae7e..272f6c17 100644 --- a/src/modules/04_system/stores/main.ts +++ b/src/modules/04_system/stores/main.ts @@ -166,6 +166,7 @@ export const useDataStore = defineStore("storeData", () => { return { dataBackUp, backupRunTotal, + restoreRunTotal, fetchListBackup, createBackUp,