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,