bfg-common 1.5.428 → 1.5.429
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
<script lang="ts" setup>
|
44
44
|
import type { UI_T_Project } from '~/lib/models/types'
|
45
|
-
import type { UI_I_SendTaskParams } from '~/lib/models/interfaces'
|
45
|
+
import type { UI_I_SendTaskParams, UI_I_ModalPayload } from '~/lib/models/interfaces'
|
46
46
|
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
47
47
|
import type {
|
48
48
|
UI_I_BackupDatastoreTable,
|
@@ -55,7 +55,6 @@ import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interface
|
|
55
55
|
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
56
56
|
import type { UI_I_BackupAction } from '~/components/common/pages/backups/lib/models/interfaces'
|
57
57
|
import type { UI_I_NameCheck } from '~/components/common/pages/backups/modals/restore/name/lib/models/interfaces'
|
58
|
-
import type { UI_I_ModalPayloadSchedulerData } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
59
58
|
import { sendTask } from '~/lib/utils/sendTask'
|
60
59
|
import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask'
|
61
60
|
import { backupDefaultFormFunc } from '~/components/common/pages/backups/modals/lib/config/createBackup'
|
@@ -101,14 +100,15 @@ const schedulerTaskForm = ref<UI_I_ScheduleNewTasksForm>(
|
|
101
100
|
const restoreForm = ref<UI_I_RestoreForm>(useDeepCopy(restoreDefaultFormFunc()))
|
102
101
|
const deleteBackupId = ref<string>('')
|
103
102
|
|
104
|
-
const schedulerTask = computed<
|
103
|
+
const schedulerTask = computed<UI_I_ModalPayload>(
|
105
104
|
() => $store.getters['backup/getCreateBackupModal']
|
106
105
|
)
|
107
106
|
watch(
|
108
107
|
schedulerTask,
|
109
|
-
(newValue:
|
110
|
-
|
111
|
-
|
108
|
+
(newValue: UI_I_ModalPayload) => {
|
109
|
+
const { scheduler } = newValue
|
110
|
+
if (!scheduler.isSchedulerTask) return
|
111
|
+
schedulerTaskForm.value = scheduler.data
|
112
112
|
},
|
113
113
|
{ immediate: true, deep: true }
|
114
114
|
)
|