bfg-common 1.4.268 → 1.4.269
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.
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<atoms-loader v-show="!vmSettings" id="loader" />
|
|
15
15
|
<div v-if="vmSettings" class="vm-context">
|
|
16
16
|
<common-pages-scheduled-tasks-modals-common-new-task-form
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
v-show="selectedStep.id === dynamicSteps.scheduledTasks"
|
|
18
|
+
v-model="newTaskForm"
|
|
19
|
+
:target="selectedVirtualMachine"
|
|
20
|
+
class="new-task-form"
|
|
21
21
|
/>
|
|
22
22
|
<common-vm-actions-common-select-name
|
|
23
23
|
v-show="selectedStep.id === dynamicSteps.selectName"
|
|
@@ -128,6 +128,7 @@ import type {
|
|
|
128
128
|
UI_I_WizardStep,
|
|
129
129
|
} from '~/components/atoms/wizard/lib/models/interfaces'
|
|
130
130
|
import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
131
|
+
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
|
131
132
|
import {
|
|
132
133
|
stepsSchemeInitial,
|
|
133
134
|
stepsFunc,
|
|
@@ -135,9 +136,7 @@ import {
|
|
|
135
136
|
} from '~/components/common/vm/actions/clone/lib/config/steps'
|
|
136
137
|
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
|
137
138
|
import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
|
|
138
|
-
import {
|
|
139
|
-
scheduledTaskDefaultFormFunc
|
|
140
|
-
} from "~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask";
|
|
139
|
+
import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask'
|
|
141
140
|
|
|
142
141
|
const props = defineProps<{
|
|
143
142
|
project: UI_T_Project
|
|
@@ -199,8 +198,9 @@ const wizard: Wizard = new Wizard(
|
|
|
199
198
|
stepsSchemeInitial(props.isScheduledTasks)
|
|
200
199
|
)
|
|
201
200
|
// TODO move to common
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
const newTaskForm = ref<UI_I_ScheduleNewTasksForm>(
|
|
202
|
+
useDeepCopy(scheduledTaskDefaultFormFunc())
|
|
203
|
+
)
|
|
204
204
|
watch(
|
|
205
205
|
newTaskForm,
|
|
206
206
|
(newValue) => {
|
|
@@ -487,7 +487,10 @@ const onFinish = (): void => {
|
|
|
487
487
|
virtualHardwareHardDisks.value,
|
|
488
488
|
virtualHardwareCdDvdDrives.value,
|
|
489
489
|
isPowerOnByDefault.value,
|
|
490
|
-
localization.value
|
|
490
|
+
localization.value,
|
|
491
|
+
false,
|
|
492
|
+
newTaskForm.value,
|
|
493
|
+
props.isScheduledTasks
|
|
491
494
|
)
|
|
492
495
|
.then(() => {
|
|
493
496
|
onHideModal()
|