bfg-common 1.5.282 → 1.5.283

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.
@@ -52,7 +52,7 @@
52
52
  "addFcoeAdapter": "Добавить адаптер FCoE",
53
53
  "addGroup": "Добавить группу",
54
54
  "addHost": "Добавить узел",
55
- "addHosts": "Добавить Узлы",
55
+ "addHosts": "Добавить узлы",
56
56
  "addIdentitySource": "Добавить источник идентификации",
57
57
  "addIdentitySourceAlert": "Встроенная проверка подлинности Windows будет признана устаревшей в {version}. Поддержка IWA по-прежнему доступна в {version} и будет постепенно прекращена в следующем выпуске",
58
58
  "addIdentitySourceAlert1": "Вы не можете продолжить, поскольку сервер {productName} Single Sign-On в настоящее время не присоединен ни к одному домену. Перейдите на страницу домена Active Directory, чтобы присоединить узел к домену Active Directory.",
@@ -284,7 +284,9 @@ const selectedScheme = computed<number[]>(() => wizard.selectedScheme.value)
284
284
  // const alertMessages = computed<string[][]>(() => wizard.alertMessages.value)
285
285
 
286
286
  const isShowPowerOn = computed<boolean>(
287
- () => wizard.selectedStepId > dynamicSteps.customizeHardware
287
+ () =>
288
+ wizard.selectedStepId > dynamicSteps.customizeHardware &&
289
+ selectedCreateType.value !== '1'
288
290
  )
289
291
 
290
292
  const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> => {
@@ -550,7 +552,8 @@ const checkCustomizeHardwareForTemplate = async (
550
552
  return new Promise((resolve) => {
551
553
  customizeHardwareForTemplateSubmit.value = (isValid: boolean) => {
552
554
  if (!isValid) {
553
- stepHasError = wizard.setValidation(dynamicSteps.customizeHardwareTemplate,
555
+ stepHasError = wizard.setValidation(
556
+ dynamicSteps.customizeHardwareTemplate,
554
557
  'customizeHardwareForTemplate',
555
558
  {
556
559
  fieldMessage: 'aaa',
@@ -558,11 +561,13 @@ const checkCustomizeHardwareForTemplate = async (
558
561
  }
559
562
  )
560
563
  } else if (
561
- wizard.hasMessage(dynamicSteps.customizeHardwareTemplate,
564
+ wizard.hasMessage(
565
+ dynamicSteps.customizeHardwareTemplate,
562
566
  'customizeHardwareForTemplate'
563
567
  )
564
568
  ) {
565
- value = wizard.removeValidation(dynamicSteps.customizeHardwareTemplate,
569
+ value = wizard.removeValidation(
570
+ dynamicSteps.customizeHardwareTemplate,
566
571
  'customizeHardwareForTemplate',
567
572
  value
568
573
  )
@@ -727,7 +732,9 @@ const onFinish = (): void => {
727
732
  localization.value,
728
733
  vmForm.value.locationPath, // для сферы
729
734
  computeResourcePath.value, // для сферы
730
- false
735
+ false,
736
+ selectedTemplate.value,
737
+ selectedCreateType.value
731
738
  )
732
739
  .then(() => {
733
740
  onHideModal()
@@ -18,6 +18,12 @@ export interface UI_I_Capabilities {
18
18
  max_vcpus: number
19
19
  }
20
20
 
21
+ export interface UI_I_DeployFromTemplate {
22
+ id: string
23
+ storage_dst: string
24
+ vm_name: string
25
+ }
26
+
21
27
  export interface UI_I_VmForm {
22
28
  name: string
23
29
  compatibility: string
@@ -61,5 +61,7 @@ export type UI_T_AddVmFinishFunc<T = void> = (
61
61
  localization: UI_I_Localization,
62
62
  locationPath?: string, // для сферы
63
63
  computeResourcePath?: string, // для сферы
64
- isValidation?: boolean
64
+ isValidation?: boolean,
65
+ selectedTemplate?: string,
66
+ selectedCreateType?: string
65
67
  ) => Promise<T>
@@ -7,23 +7,24 @@
7
7
  data-id="customize-os"
8
8
  type="checkbox"
9
9
  value="customize-os"
10
+ disabled
10
11
  />
11
12
  <label for="customize-os">{{
12
13
  localization.common.customizeTheOperatingSystem
13
14
  }}</label>
14
15
  </div>
15
- <div class="checkbox">
16
- <input
17
- id="customize-hardware"
18
- v-model="selectedOptions"
19
- data-id="customize-hardware"
20
- type="checkbox"
21
- value="customize-hardware"
22
- />
23
- <label for="customize-hardware">{{
24
- localization.common.customizeThisVirtualMachineHardware
25
- }}</label>
26
- </div>
16
+ <!-- <div class="checkbox">-->
17
+ <!-- <input-->
18
+ <!-- id="customize-hardware"-->
19
+ <!-- v-model="selectedOptions"-->
20
+ <!-- data-id="customize-hardware"-->
21
+ <!-- type="checkbox"-->
22
+ <!-- value="customize-hardware"-->
23
+ <!-- />-->
24
+ <!-- <label for="customize-hardware">{{-->
25
+ <!-- localization.common.customizeThisVirtualMachineHardware-->
26
+ <!-- }}</label>-->
27
+ <!-- </div>-->
27
28
  <div class="checkbox">
28
29
  <input
29
30
  id="power-on"
@@ -31,6 +32,7 @@
31
32
  data-id="power-on"
32
33
  type="checkbox"
33
34
  value="power-on"
35
+ disabled
34
36
  />
35
37
  <label for="power-on">{{
36
38
  localization.common.powerOnVirtualMachineAfterCreation
@@ -48,12 +50,9 @@ const emits = defineEmits<{
48
50
  const localization = computed<UI_I_Localization>(() => useLocal())
49
51
 
50
52
  const selectedOptions = ref<string[]>([])
51
- watch(
52
- selectedOptions,
53
- (newValue) => {
54
- emits('change', newValue)
55
- }
56
- )
53
+ watch(selectedOptions, (newValue) => {
54
+ emits('change', newValue)
55
+ })
57
56
  </script>
58
57
 
59
58
  <style scoped lang="scss">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.282",
4
+ "version": "1.5.283",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",