bfg-common 1.6.0 → 1.6.1
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.
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
]"
|
|
9
9
|
>
|
|
10
10
|
<div
|
|
11
|
+
v-if="!props.isNewVmFromTemplate"
|
|
11
12
|
:class="[
|
|
12
13
|
'checkbox-container',
|
|
13
14
|
{ checked: isCustomizeOs },
|
|
@@ -59,35 +60,24 @@
|
|
|
59
60
|
</p>
|
|
60
61
|
</div>
|
|
61
62
|
<div
|
|
62
|
-
:class="[
|
|
63
|
-
'checkbox-container',
|
|
64
|
-
{ checked: isPowerOn },
|
|
65
|
-
{ disabled: props.isNewVmFromTemplate },
|
|
66
|
-
]"
|
|
63
|
+
:class="['checkbox-container', { checked: isPowerOn }]"
|
|
67
64
|
@click.stop.prevent="onTogglePowerOn"
|
|
68
65
|
>
|
|
69
|
-
<!-- :disabled="props.isNewVmFromTemplate"-->
|
|
70
66
|
<ui-checkbox
|
|
71
67
|
v-model="isPowerOn"
|
|
72
68
|
:label-text="localization.vmWizard.autoPowerOn"
|
|
73
|
-
:title="localization.vmWizard.autoPowerOn"
|
|
74
|
-
:disabled="props.isNewVmFromTemplate"
|
|
75
69
|
test-id="power-on"
|
|
76
70
|
size="md"
|
|
77
71
|
/>
|
|
78
|
-
|
|
79
|
-
<p
|
|
80
|
-
:class="[
|
|
81
|
-
'checkbox-block-description mt-2 ml-7',
|
|
82
|
-
{ disabled: props.isNewVmFromTemplate },
|
|
83
|
-
]"
|
|
84
|
-
>
|
|
72
|
+
<p class="checkbox-block-description mt-2 ml-7">
|
|
85
73
|
{{ localization.vmWizard.powerVMAfterCreation }}
|
|
86
74
|
</p>
|
|
87
75
|
</div>
|
|
88
|
-
<div
|
|
76
|
+
<div
|
|
77
|
+
v-if="props.isNewVmFromTemplate && props.project === 'sphere'"
|
|
78
|
+
class="checkbox-container"
|
|
79
|
+
>
|
|
89
80
|
<ui-input
|
|
90
|
-
v-if="props.project === 'sphere'"
|
|
91
81
|
v-model="maxParallel"
|
|
92
82
|
:placeholder="localization.vmWizard.maxParallel"
|
|
93
83
|
test-id="max-parallel"
|
|
@@ -180,7 +170,7 @@ const onToggleCustomizeHardware = (): void => {
|
|
|
180
170
|
}
|
|
181
171
|
|
|
182
172
|
const onTogglePowerOn = (): void => {
|
|
183
|
-
if (props.isNewVmFromTemplate) return
|
|
173
|
+
// if (props.isNewVmFromTemplate) return
|
|
184
174
|
|
|
185
175
|
isPowerOn.value = !isPowerOn.value
|
|
186
176
|
if (isPowerOn.value) {
|
|
@@ -223,7 +213,8 @@ watch(
|
|
|
223
213
|
|
|
224
214
|
<style scoped lang="scss">
|
|
225
215
|
.select-options {
|
|
226
|
-
grid-template-columns: 1fr 1fr;
|
|
216
|
+
//grid-template-columns: 1fr 1fr;
|
|
217
|
+
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
227
218
|
grid-template-rows: max-content;
|
|
228
219
|
overflow-y: auto;
|
|
229
220
|
padding-bottom: 16px;
|