bfg-common 1.4.269 → 1.4.271

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.
@@ -203,9 +203,8 @@ const newTaskForm = ref<UI_I_ScheduleNewTasksForm>(
203
203
  )
204
204
  watch(
205
205
  newTaskForm,
206
- (newValue) => {
207
- if (props.isScheduledTasks)
208
- wizard.setDisabledNextButton(!newValue.task_name || !newValue.frequency)
206
+ (newValue: UI_I_ScheduleNewTasksForm) => {
207
+ if (props.isScheduledTasks) wizard.setDisabledNextButton(newValue.isValid)
209
208
  },
210
209
  { immediate: true, deep: true }
211
210
  )
@@ -8,6 +8,7 @@ import {
8
8
  UI_I_SendDataVideoCard,
9
9
  } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
10
10
  import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
11
+ import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
11
12
 
12
13
  export interface API_UI_I_VmEditCpu {
13
14
  core_per_socket: number
@@ -82,11 +83,17 @@ export interface UI_I_CreateVmPayload {
82
83
  location?: string // для сферы
83
84
  compute_resource?: string // для сферы
84
85
  }
85
- export interface UI_I_CloneVmPayload {
86
+ export interface UI_I_CloneVmData {
86
87
  start: boolean
87
- cloned_from: string,
88
- storage_id: string,
89
- cloned_name: string,
88
+ cloned_from: string
89
+ storage_id: string
90
+ cloned_name: string
91
+ }
92
+
93
+ export interface UI_I_CloneVmPayload {
94
+ data: UI_I_CloneVmData
95
+ schedulerForm: UI_I_ScheduleNewTasksForm
96
+ isScheduledTasks: boolean
90
97
  }
91
98
 
92
99
  export interface UI_I_EditVmPayload {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.269",
4
+ "version": "1.4.271",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",