restore ได้ทีละอัน
This commit is contained in:
parent
b01ad2e1a9
commit
3382e9eeca
2 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@ export const useDataStore = defineStore("storeData", () => {
|
|||
return {
|
||||
dataBackUp,
|
||||
backupRunTotal,
|
||||
restoreRunTotal,
|
||||
|
||||
fetchListBackup,
|
||||
createBackUp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue