bfg-common 1.4.289 → 1.4.291
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.
|
@@ -154,8 +154,7 @@ const props = defineProps<{
|
|
|
154
154
|
passthroughDevices: UI_I_ConfigurePciDevicesTable | null
|
|
155
155
|
vmNameInWizard: string
|
|
156
156
|
capabilities?: UI_I_Capabilities
|
|
157
|
-
|
|
158
|
-
isEditScheduledTasks?: boolean
|
|
157
|
+
schedulerTask?: any // TODO надо interface переместить глобално
|
|
159
158
|
selectedVirtualMachine?: UI_I_Capabilities
|
|
160
159
|
}>()
|
|
161
160
|
|
|
@@ -173,9 +172,13 @@ const emits = defineEmits<{
|
|
|
173
172
|
|
|
174
173
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
175
174
|
|
|
175
|
+
const isScheduledTasks = computed<boolean>(
|
|
176
|
+
() => props.schedulerTask.isSchedulerTask
|
|
177
|
+
)
|
|
178
|
+
|
|
176
179
|
const title = computed<string>(() => {
|
|
177
180
|
let result = localization.value.common.cloneExistingVirtualMachine
|
|
178
|
-
if (
|
|
181
|
+
if (isScheduledTasks.value) {
|
|
179
182
|
result = `${localization.value.common.scheduleNewTasks} (${localization.value.common.cloneExistingVirtualMachine})`
|
|
180
183
|
}
|
|
181
184
|
|
|
@@ -183,7 +186,7 @@ const title = computed<string>(() => {
|
|
|
183
186
|
})
|
|
184
187
|
|
|
185
188
|
const dynamicSteps = ref<I_DynamicSteps>(
|
|
186
|
-
getDynamicSteps(
|
|
189
|
+
getDynamicSteps(isScheduledTasks.value)
|
|
187
190
|
)
|
|
188
191
|
|
|
189
192
|
watch(
|
|
@@ -195,8 +198,8 @@ watch(
|
|
|
195
198
|
)
|
|
196
199
|
|
|
197
200
|
const wizard: Wizard = new Wizard(
|
|
198
|
-
stepsFunc(localization.value,
|
|
199
|
-
stepsSchemeInitial(
|
|
201
|
+
stepsFunc(localization.value, isScheduledTasks.value),
|
|
202
|
+
stepsSchemeInitial(isScheduledTasks.value)
|
|
200
203
|
)
|
|
201
204
|
// TODO move to common
|
|
202
205
|
const newTaskForm = ref<UI_I_ScheduleNewTasksForm>(
|
|
@@ -205,7 +208,7 @@ const newTaskForm = ref<UI_I_ScheduleNewTasksForm>(
|
|
|
205
208
|
watch(
|
|
206
209
|
newTaskForm,
|
|
207
210
|
(newValue: UI_I_ScheduleNewTasksForm) => {
|
|
208
|
-
if (
|
|
211
|
+
if (isScheduledTasks.value) wizard.setDisabledNextButton(newValue.isValid)
|
|
209
212
|
},
|
|
210
213
|
{ immediate: true, deep: true }
|
|
211
214
|
)
|
|
@@ -490,8 +493,7 @@ const onFinish = (): void => {
|
|
|
490
493
|
localization.value,
|
|
491
494
|
false,
|
|
492
495
|
newTaskForm.value,
|
|
493
|
-
props.
|
|
494
|
-
props.isEditScheduledTasks
|
|
496
|
+
props.schedulerTask
|
|
495
497
|
)
|
|
496
498
|
.then(() => {
|
|
497
499
|
onHideModal()
|