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();
|
useCounterMixin();
|
||||||
const { fetchListBackup, createBackUp, restore, deleteBackUp } = useDataStore();
|
const { fetchListBackup, createBackUp, restore, deleteBackUp } = useDataStore();
|
||||||
const storeData = useDataStore();
|
const storeData = useDataStore();
|
||||||
const { dataBackUp, backupRunTotal } = storeToRefs(storeData);
|
const { dataBackUp, backupRunTotal , restoreRunTotal } = storeToRefs(storeData);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* props
|
* props
|
||||||
|
|
@ -209,6 +209,7 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
:disable="restoreRunTotal !== 0 "
|
||||||
icon="restore"
|
icon="restore"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="12px"
|
size="12px"
|
||||||
|
|
|
||||||
|
|
@ -166,6 +166,7 @@ export const useDataStore = defineStore("storeData", () => {
|
||||||
return {
|
return {
|
||||||
dataBackUp,
|
dataBackUp,
|
||||||
backupRunTotal,
|
backupRunTotal,
|
||||||
|
restoreRunTotal,
|
||||||
|
|
||||||
fetchListBackup,
|
fetchListBackup,
|
||||||
createBackUp,
|
createBackUp,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue