bfg-common 1.5.654 → 1.5.655

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.
@@ -80,28 +80,29 @@
80
80
  {{ localization.vmWizard.powerVMAfterCreation }}
81
81
  </p>
82
82
  </div>
83
- <div
84
- v-if="props.isNewVmFromTemplate"
85
- :class="['checkbox-container', { checked: isLinkedClone }]"
86
- @click.stop.prevent="onToggleLinkedClone"
87
- >
88
- <ui-checkbox
89
- v-model="isLinkedClone"
90
- :label-text="localization.vmWizard.createLinkedClone"
91
- :title="localization.vmWizard.createLinkedClone"
92
- test-id="create-linked-clone"
93
- size="md"
94
- />
83
+ <!-- Пока что нужно скрыть-->
84
+ <!-- <div-->
85
+ <!-- v-if="props.isNewVmFromTemplate"-->
86
+ <!-- :class="['checkbox-container', { checked: isLinkedClone }]"-->
87
+ <!-- @click.stop.prevent="onToggleLinkedClone"-->
88
+ <!-- >-->
89
+ <!-- <ui-checkbox-->
90
+ <!-- v-model="isLinkedClone"-->
91
+ <!-- :label-text="localization.vmWizard.createLinkedClone"-->
92
+ <!-- :title="localization.vmWizard.createLinkedClone"-->
93
+ <!-- test-id="create-linked-clone"-->
94
+ <!-- size="md"-->
95
+ <!-- />-->
95
96
 
96
- <ui-input
97
- v-if="props.project !== 'sphere'"
98
- v-model="cloneCount"
99
- :disabled="!isLinkedClone"
100
- test-id="clone-count"
101
- type="number"
102
- class="ml-1 mt-2"
103
- />
104
- </div>
97
+ <!-- <ui-input-->
98
+ <!-- v-if="props.project !== 'sphere'"-->
99
+ <!-- v-model="cloneCount"-->
100
+ <!-- :disabled="!isLinkedClone"-->
101
+ <!-- test-id="clone-count"-->
102
+ <!-- type="number"-->
103
+ <!-- class="ml-1 mt-2"-->
104
+ <!-- />-->
105
+ <!-- </div>-->
105
106
  </div>
106
107
  </template>
107
108
 
@@ -173,17 +174,17 @@ const onTogglePowerOn = (): void => {
173
174
  }
174
175
  }
175
176
 
176
- const onToggleLinkedClone = (): void => {
177
- isLinkedClone.value = !isLinkedClone.value
178
- if (isLinkedClone.value) {
179
- !modelValue.value.includes('create-linked-clone') &&
180
- modelValue.value.push('create-linked-clone')
181
- } else {
182
- modelValue.value = modelValue.value.filter(
183
- (item) => item !== 'create-linked-clone'
184
- )
185
- }
186
- }
177
+ // const onToggleLinkedClone = (): void => {
178
+ // isLinkedClone.value = !isLinkedClone.value
179
+ // if (isLinkedClone.value) {
180
+ // !modelValue.value.includes('create-linked-clone') &&
181
+ // modelValue.value.push('create-linked-clone')
182
+ // } else {
183
+ // modelValue.value = modelValue.value.filter(
184
+ // (item) => item !== 'create-linked-clone'
185
+ // )
186
+ // }
187
+ // }
187
188
 
188
189
  const isContainerSm = ref<boolean>(false)
189
190
  watch(
@@ -40,30 +40,31 @@
40
40
  localization.common.powerOnVirtualMachineAfterCreation
41
41
  }}</label>
42
42
  </div>
43
- <div v-if="props.isNewVmFromTemplate" class="checkbox">
44
- <!-- :disabled="props.isNewVmFromTemplate"-->
45
- <input
46
- id="create-linked-clone"
47
- v-model="modelValue"
48
- data-id="create-linked-clone"
49
- type="checkbox"
50
- value="create-linked-clone"
51
- />
52
- <label for="create-linked-clone">{{
53
- localization.vmWizard.createLinkedClone
54
- }}</label>
43
+ <!-- Пока что нужно скрыть-->
44
+ <!-- <div v-if="props.isNewVmFromTemplate" class="checkbox">-->
45
+ <!-- &lt;!&ndash; :disabled="props.isNewVmFromTemplate"&ndash;&gt;-->
46
+ <!-- <input-->
47
+ <!-- id="create-linked-clone"-->
48
+ <!-- v-model="modelValue"-->
49
+ <!-- data-id="create-linked-clone"-->
50
+ <!-- type="checkbox"-->
51
+ <!-- value="create-linked-clone"-->
52
+ <!-- />-->
53
+ <!-- <label for="create-linked-clone">{{-->
54
+ <!-- localization.vmWizard.createLinkedClone-->
55
+ <!-- }}</label>-->
55
56
 
56
- <input
57
- v-if="props.project !== 'sphere'"
58
- v-model="cloneCount"
59
- :disabled="!isLinkedClone"
60
- data-id="clone-count"
61
- type="number"
62
- class="ml-1"
63
- :min="0"
64
- :max="1000"
65
- />
66
- </div>
57
+ <!-- <input-->
58
+ <!-- v-if="props.project !== 'sphere'"-->
59
+ <!-- v-model="cloneCount"-->
60
+ <!-- :disabled="!isLinkedClone"-->
61
+ <!-- data-id="clone-count"-->
62
+ <!-- type="number"-->
63
+ <!-- class="ml-1"-->
64
+ <!-- :min="0"-->
65
+ <!-- :max="1000"-->
66
+ <!-- />-->
67
+ <!-- </div>-->
67
68
  </div>
68
69
  </template>
69
70
 
@@ -72,7 +73,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
72
73
  import type { UI_T_Project } from '~/lib/models/types'
73
74
 
74
75
  const modelValue = defineModel<string[]>()
75
- const cloneCount = defineModel<number>('cloneCount')
76
+ // const cloneCount = defineModel<number>('cloneCount')
76
77
 
77
78
  const props = withDefaults(
78
79
  defineProps<{
@@ -87,9 +88,9 @@ const props = withDefaults(
87
88
 
88
89
  const localization = computed<UI_I_Localization>(() => useLocal())
89
90
 
90
- const isLinkedClone = computed<boolean>(
91
- () => modelValue.value?.includes('create-linked-clone') || false
92
- )
91
+ // const isLinkedClone = computed<boolean>(
92
+ // () => modelValue.value?.includes('create-linked-clone') || false
93
+ // )
93
94
  </script>
94
95
 
95
96
  <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.654",
4
+ "version": "1.5.655",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",