bfg-common 1.6.91 → 1.6.92

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.
Files changed (186) hide show
  1. package/assets/localization/local_be.json +4637 -4365
  2. package/assets/localization/local_en.json +4642 -4369
  3. package/assets/localization/local_hy.json +4641 -4369
  4. package/assets/localization/local_kk.json +4640 -4368
  5. package/assets/localization/local_ru.json +4640 -4368
  6. package/assets/localization/local_zh.json +4638 -4366
  7. package/assets/scss/common/global.scss +11 -0
  8. package/assets/scss/common/normalize.scss +3 -0
  9. package/assets/scss/common/theme.scss +2 -2
  10. package/components/atoms/stack/StackBlock.vue +1 -1
  11. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
  12. package/components/atoms/tooltip/TooltipError.vue +3 -0
  13. package/components/common/adapterManager/AdapterManagerNew.vue +87 -0
  14. package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
  15. package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
  16. package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
  17. package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
  18. package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
  19. package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
  20. package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
  21. package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
  22. package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
  23. package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
  24. package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
  25. package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
  26. package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
  27. package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
  28. package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
  29. package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +39 -32
  30. package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
  31. package/components/common/diagramMain/Diagram.vue +169 -85
  32. package/components/common/diagramMain/DiagramMain.vue +40 -10
  33. package/components/common/diagramMain/header/Header.vue +49 -0
  34. package/components/common/diagramMain/header/HeaderNew.vue +155 -0
  35. package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
  36. package/components/common/diagramMain/modals/Modals.vue +5 -5
  37. package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
  38. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
  39. package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
  40. package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
  41. package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
  42. package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
  43. package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
  44. package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
  45. package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
  46. package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
  47. package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
  48. package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
  49. package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
  50. package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
  51. package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
  52. package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
  53. package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
  54. package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
  55. package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
  56. package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
  57. package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
  58. package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
  59. package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
  60. package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
  61. package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
  62. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
  63. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
  64. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +87 -0
  65. package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
  66. package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
  67. package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
  68. package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
  69. package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
  70. package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
  71. package/components/common/diagramMain/modals/lib/config/adapterModal.ts +9 -9
  72. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
  73. package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
  74. package/components/common/diagramMain/modals/lib/config/networkModal.ts +15 -15
  75. package/components/common/diagramMain/modals/lib/config/portModal.ts +12 -12
  76. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +2 -2
  77. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
  78. package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
  79. package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue +164 -0
  80. package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdaptersNew.vue +306 -0
  81. package/components/common/diagramMain/modals/{ManagePhysicalAdaptersModal.vue → managePhysicalAdapters/ManagePhysicalAdaptersOld.vue} +33 -119
  82. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
  83. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
  84. package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +67 -16
  85. package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +8 -0
  86. package/components/common/diagramMain/skeleton/Header.vue +31 -0
  87. package/components/common/diagramMain/skeleton/Switch.vue +75 -0
  88. package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
  89. package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
  90. package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
  91. package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
  92. package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
  93. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
  94. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
  95. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
  96. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
  97. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
  98. package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
  99. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
  100. package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
  101. package/components/common/modals/Rename.vue +3 -1
  102. package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +46 -46
  103. package/components/common/monitor/utilization/Utilization.vue +7 -1
  104. package/components/common/monitor/utilization/lib/utils/index.ts +24 -3
  105. package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
  106. package/components/common/pages/backups/lib/models/interfaces.ts +1 -0
  107. package/components/common/pages/backups/modals/Modals.vue +1 -0
  108. package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
  109. package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
  110. package/components/common/pages/backups/modals/lib/config/restore.ts +1 -0
  111. package/components/common/pages/backups/modals/lib/models/interfaces.ts +1 -0
  112. package/components/common/pages/backups/modals/restore/Restore.vue +4 -2
  113. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +184 -253
  114. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
  115. package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
  116. package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
  117. package/components/common/pages/tasks/Tasks.vue +4 -1
  118. package/components/common/pages/tasks/table/Table.vue +25 -23
  119. package/components/common/readyToComplete/New.vue +1 -0
  120. package/components/common/split/horizontal/New.vue +1 -1
  121. package/components/common/split/horizontal/Old.vue +1 -1
  122. package/components/common/split/vertical/New.vue +42 -8
  123. package/components/common/split/vertical/Old.vue +31 -2
  124. package/components/common/split/vertical/Vertical.vue +4 -0
  125. package/components/common/tools/Actions.vue +7 -3
  126. package/components/common/tools/lib/models/interfaces.ts +1 -0
  127. package/components/common/vm/actions/add/New.vue +21 -6
  128. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
  129. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
  130. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
  131. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
  132. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
  133. package/components/common/vm/actions/common/select/options/New.vue +14 -12
  134. package/components/common/vm/actions/common/select/options/Old.vue +16 -15
  135. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
  136. package/components/common/vm/actions/confirm/Confirm.vue +3 -0
  137. package/components/common/vm/actions/rename/Old.vue +1 -0
  138. package/components/common/vm/snapshots/DetailView.vue +6 -6
  139. package/components/common/wizards/datastore/add/New.vue +6 -0
  140. package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
  141. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  142. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
  143. package/components/common/wizards/network/add/Add.vue +13 -2
  144. package/components/common/wizards/network/add/AddNew.vue +22 -26
  145. package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
  146. package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
  147. package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
  148. package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
  149. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
  150. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
  151. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
  152. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
  153. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
  154. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
  155. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
  156. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
  157. package/components/common/wizards/network/add/validations/common.ts +1 -1
  158. package/components/common/wizards/vm/migrate/New.vue +13 -3
  159. package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
  160. package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
  161. package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
  162. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
  163. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
  164. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
  165. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
  166. package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
  167. package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
  168. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
  169. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
  170. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
  171. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
  172. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
  173. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
  174. package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
  175. package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
  176. package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
  177. package/lib/models/interfaces.ts +1 -0
  178. package/lib/models/store/tasks/enums.ts +3 -0
  179. package/lib/models/store/tasks/types.ts +7 -6
  180. package/package.json +2 -2
  181. package/plugins/directives.ts +3 -5
  182. package/public/spice-console/application/agent.js +18 -17
  183. package/store/tasks/actions.ts +26 -8
  184. package/store/tasks/mappers/recentTasks.ts +1 -0
  185. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
  186. package/components/common/monitor/utilization/lib/models/enums.ts +0 -4
@@ -3,7 +3,7 @@ import type {
3
3
  UI_I_UtilizationDataItem,
4
4
  } from '~/components/common/monitor/utilization/lib/models/interfaces'
5
5
  import type { UI_I_Localization } from '~/lib/models/interfaces'
6
- import { UI_E_UtilizationBlockCurrentKeys } from '~/components/common/monitor/utilization/lib/models/enums'
6
+ import type { T_NodeType } from '~/components/templates/inventory/lib/models/types'
7
7
  import { getMetricsLocalizationByKey } from '~/components/common/monitor/lib/utils/localization'
8
8
 
9
9
  const currentColorKey = (value: string): string => {
@@ -29,9 +29,30 @@ const currentColorKey = (value: string): string => {
29
29
  return result
30
30
  }
31
31
 
32
+ const currentTitle = (
33
+ routeType: T_NodeType,
34
+ currentType: string,
35
+ localization: UI_I_Localization
36
+ ): string => {
37
+ let result: string = ''
38
+
39
+ if (routeType === 'host') {
40
+ if (currentType === 'cpu') result = localization.common.hostCpu
41
+ if (currentType === 'memory') result = localization.common.hostMem
42
+ } else if (routeType === 'vm') {
43
+ if (currentType === 'cpu')
44
+ result = localization.inventoryMonitor.virtualMachineCpu
45
+ if (currentType === 'memory')
46
+ result = localization.inventoryMonitor.virtualMachineMemory
47
+ }
48
+
49
+ return result
50
+ }
51
+
32
52
  export const constructApiData = (
33
53
  apiData: API_UI_I_UtilizationData | null,
34
- localization: UI_I_Localization
54
+ localization: UI_I_Localization,
55
+ routeType: T_NodeType
35
56
  ): UI_I_UtilizationDataItem[] => {
36
57
  if (!apiData) return []
37
58
 
@@ -49,7 +70,7 @@ export const constructApiData = (
49
70
  result.push({
50
71
  isShow,
51
72
  id: key,
52
- title: localization.common[UI_E_UtilizationBlockCurrentKeys[key]] || key,
73
+ title: currentTitle(routeType, currentType, localization) || key,
53
74
  type: currentType,
54
75
  data: apiData[key].items.map((item) => {
55
76
  const color = ![
@@ -43,7 +43,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
43
43
  }
44
44
 
45
45
  .ui-no-data-provided-title {
46
- font-weight: 500;
46
+ font-weight: 400;
47
47
  font-size: 16px;
48
48
  line-height: 19px;
49
49
  letter-spacing: 0;
@@ -31,6 +31,7 @@ export interface UI_I_BackupAction {
31
31
  id?: string
32
32
  name?: string
33
33
  backupId?: string
34
+ vmId?: string
34
35
  bucketId?: string
35
36
  storageId?: string
36
37
  }
@@ -187,6 +187,7 @@ watch(
187
187
  case 'restoreBackup':
188
188
  isShowRestoreModal.value = true
189
189
  restoreForm.value.backup_storage = newValue.storageId || ''
190
+ restoreForm.value.vm = newValue.vmId || ''
190
191
  restoreForm.value.bucket = newValue.bucketId || ''
191
192
  restoreForm.value.backup = newValue.backupId || ''
192
193
  break
@@ -191,19 +191,19 @@ export const getBodyDataFunc = (
191
191
  },
192
192
  {
193
193
  col: 'col2',
194
- text: $binary.round(datastore.capacity.capacity_mb, false, lang)
194
+ text: $binary.round(datastore.capacity.capacity_mb || 0, false, lang)
195
195
  },
196
196
  {
197
197
  col: 'col3',
198
- text: $binary.round(datastore.capacity.provisioned_mb, false, lang)
198
+ text: $binary.round(datastore.capacity.provisioned_mb || 0, false, lang)
199
199
  },
200
200
  {
201
201
  col: 'col4',
202
- text: $binary.round(datastore.capacity.free_mb, false, lang)
202
+ text: $binary.round(datastore.capacity.free_mb || 0, false, lang)
203
203
  },
204
204
  {
205
205
  col: 'col5',
206
- text: $binary.round(datastore.capacity.used_mb, false, lang)
206
+ text: $binary.round(datastore.capacity.used_mb || 0, false, lang)
207
207
  },
208
208
  {
209
209
  col: 'col6',
@@ -83,7 +83,7 @@ export const bodyItems = (
83
83
  },
84
84
  {
85
85
  key: 'col2',
86
- text: $binary.round(datastore.capacity[tableKeys[2]], false, lang),
86
+ text: $binary.round(datastore.capacity[tableKeys[2]] || 0, false, lang),
87
87
  id: datastore.id,
88
88
  testId: `backup-datastore-table-item-${datastore.id}`,
89
89
  data: {
@@ -93,7 +93,7 @@ export const bodyItems = (
93
93
  {
94
94
  key: 'col3',
95
95
  text: $binary.round(
96
- datastore.capacity[tableKeys[3]],
96
+ datastore.capacity[tableKeys[3]] || 0,
97
97
  false,
98
98
  lang
99
99
  ),
@@ -105,7 +105,7 @@ export const bodyItems = (
105
105
  },
106
106
  {
107
107
  key: 'col4',
108
- text: $binary.round(datastore.capacity[tableKeys[4]], false, lang),
108
+ text: $binary.round(datastore.capacity[tableKeys[4]] || 0, false, lang),
109
109
  id: datastore.id,
110
110
  testId: `backup-datastore-table-item-${datastore.id}`,
111
111
  data: {
@@ -114,7 +114,7 @@ export const bodyItems = (
114
114
  },
115
115
  {
116
116
  key: 'col5',
117
- text: $binary.round(datastore.capacity[tableKeys[5]], false, lang),
117
+ text: $binary.round(datastore.capacity[tableKeys[5]] || 0, false, lang),
118
118
  id: datastore.id,
119
119
  testId: `backup-datastore-table-item-${datastore.id}`,
120
120
  data: {
@@ -4,6 +4,7 @@ export const restoreDefaultFormFunc = (): UI_I_RestoreForm => {
4
4
  return {
5
5
  restore_code: 2,
6
6
  backup_storage: '',
7
+ vm: '',
7
8
  bucket: '',
8
9
  backup: '',
9
10
  copy_disks: [],
@@ -163,6 +163,7 @@ export interface UI_I_CreateBackupForm {
163
163
  export interface UI_I_RestoreForm {
164
164
  restore_code: 1 | 2 | 3 // 1 - disk only, 2 - existing, 3 - as New
165
165
  backup_storage: string
166
+ vm: string
166
167
  bucket: string
167
168
  backup: string
168
169
  copy_disks: UI_I_Pvm['disk_devices']
@@ -258,7 +258,8 @@ const getPvm = async (): Promise<void> => {
258
258
  loadingCount.value++
259
259
  await $store.dispatch('backup/A_GET_PVM', {
260
260
  target: model.value.backup_storage,
261
- bucketId: model.value.bucket, // TODO bucket поменять на vm так как это сейчас vm
261
+ vmId: model.value.vm,
262
+ bucketId: model.value.bucket,
262
263
  backupId: model.value.backup,
263
264
  })
264
265
 
@@ -273,7 +274,8 @@ const getBackupDisks = async (): Promise<void> => {
273
274
  loadingCount.value++
274
275
  await $store.dispatch('backup/A_GET_BACKUP_DISKS', {
275
276
  target: model.value.backup_storage,
276
- bucketId: model.value.bucket, // TODO bucket поменять на vm так как это сейчас vm
277
+ vmId: model.value.vm,
278
+ bucketId: model.value.bucket,
277
279
  backupId: model.value.backup,
278
280
  })
279
281