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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
:
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
<!-- Пока что нужно скрыть-->
|
|
44
|
+
<!-- <div v-if="props.isNewVmFromTemplate" class="checkbox">-->
|
|
45
|
+
<!-- <!– :disabled="props.isNewVmFromTemplate"–>-->
|
|
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
|
-
|
|
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">
|