bfg-common 1.1.97 → 1.1.98
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="clone-vm">
|
|
3
3
|
<atoms-modal-by-steps
|
|
4
|
-
test-id="
|
|
4
|
+
test-id="clone-vm-wizard"
|
|
5
5
|
:show="true"
|
|
6
6
|
:title="localization.cloneExistingVirtualMachine"
|
|
7
7
|
:step-items="stepItems"
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
@hide="onHideModal"
|
|
12
12
|
>
|
|
13
13
|
<template #modalBody>
|
|
14
|
-
<
|
|
14
|
+
<atoms-loader v-show="!vmSettings || loading" id="loader" />
|
|
15
|
+
<div v-if="vmSettings" class="vm-context">
|
|
15
16
|
<div class="context-title-wrap">
|
|
16
17
|
<p>{{ stepSubTitle }}</p>
|
|
17
18
|
</div>
|
|
@@ -146,7 +147,10 @@ import type {
|
|
|
146
147
|
UI_I_FolderOrFileTreePayload,
|
|
147
148
|
} from '~/models/store/storage/interfaces'
|
|
148
149
|
import type { UI_I_NetworkTableItem } from '~/models/store/network/interfaces'
|
|
149
|
-
import type {
|
|
150
|
+
import type {
|
|
151
|
+
API_UI_I_Error,
|
|
152
|
+
UI_I_TablePayload,
|
|
153
|
+
} from '~/models/store/interfaces'
|
|
150
154
|
import type { UI_I_FileTreeNode } from '~/components/models/interfaces'
|
|
151
155
|
import type { UI_I_Localization } from '~/models/interfaces'
|
|
152
156
|
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/add/customizeHardware/models/interfaces'
|
|
@@ -188,11 +192,9 @@ const props = defineProps<{
|
|
|
188
192
|
errorValidationFields: UI_I_ErrorValidationField[]
|
|
189
193
|
readyCompleteTableInfo: UI_I_TableInfoItem[]
|
|
190
194
|
vmCpuHelpTextSecond: string
|
|
191
|
-
finishFunc:
|
|
195
|
+
finishFunc: any
|
|
192
196
|
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
193
|
-
validateSendDataFunc:
|
|
194
|
-
[UI_T_SelectedNavItem, null | number] | null
|
|
195
|
-
>
|
|
197
|
+
validateSendDataFunc: any
|
|
196
198
|
passthroughDevices: UI_I_ConfigurePciDevicesTable | null
|
|
197
199
|
vmNameInWizard: string
|
|
198
200
|
}>()
|
|
@@ -425,8 +427,6 @@ const onChangeStep = (key: number): void => {
|
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
const compatibility = ref<UI_I_OptionItem[]>(capabilities.compatibility)
|
|
428
|
-
const cpuModels = ref<UI_I_OptionItem[]>(capabilities.cpuModels)
|
|
429
|
-
const maxCpus = ref<number>(capabilities.maxCpus)
|
|
430
430
|
const maxMemory = ref<number>(capabilities.maxMemory)
|
|
431
431
|
|
|
432
432
|
const vmSettings = computed<UI_I_VmSettings | null>(() => props.vmSettings)
|
|
@@ -445,7 +445,7 @@ const onHideModal = (): void => {
|
|
|
445
445
|
width: 20px;
|
|
446
446
|
top: 0;
|
|
447
447
|
}
|
|
448
|
-
.
|
|
448
|
+
.vm-context {
|
|
449
449
|
padding: 16px 15px 10px 10px;
|
|
450
450
|
height: 100%;
|
|
451
451
|
display: flex;
|
|
@@ -458,12 +458,12 @@ const onHideModal = (): void => {
|
|
|
458
458
|
h4 {
|
|
459
459
|
font-weight: 700;
|
|
460
460
|
font-size: 13px;
|
|
461
|
-
color: var(--
|
|
461
|
+
color: var(--vm-context-title);
|
|
462
462
|
}
|
|
463
463
|
p {
|
|
464
464
|
font-weight: 400;
|
|
465
465
|
font-size: 13px;
|
|
466
|
-
color: var(--
|
|
466
|
+
color: var(--vm-context-sub-title);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
|
|
@@ -534,11 +534,11 @@ const onHideModal = (): void => {
|
|
|
534
534
|
|
|
535
535
|
<style>
|
|
536
536
|
:root {
|
|
537
|
-
--
|
|
538
|
-
--
|
|
537
|
+
--vm-context-title: #333;
|
|
538
|
+
--vm-context-sub-title: #000;
|
|
539
539
|
}
|
|
540
540
|
:root.dark-theme {
|
|
541
|
-
--
|
|
542
|
-
--
|
|
541
|
+
--vm-context-title: #adbbc4;
|
|
542
|
+
--vm-context-sub-title: #adbbc4;
|
|
543
543
|
}
|
|
544
544
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="edit-vm">
|
|
3
3
|
<atoms-modal
|
|
4
|
-
test-id="vm-
|
|
4
|
+
test-id="edit-vm-wizard"
|
|
5
5
|
:show="true"
|
|
6
6
|
:title="localization.editSettings"
|
|
7
7
|
:second-title="vmNameCash"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
v-show="!vmSettings || loading"
|
|
15
15
|
id="loader"
|
|
16
16
|
/>
|
|
17
|
-
<div v-if="vmSettings" class="
|
|
17
|
+
<div v-if="vmSettings" class="vm-context">
|
|
18
18
|
<common-vm-actions-add-customize-hardware
|
|
19
19
|
v-model:vm-name="vmName"
|
|
20
20
|
v-model:guest-machine-type="vmSettings.guestMachineType"
|
|
@@ -205,7 +205,7 @@ const validateSendData = async (): Promise<void> => {
|
|
|
205
205
|
</script>
|
|
206
206
|
|
|
207
207
|
<style scoped lang="scss">
|
|
208
|
-
.
|
|
208
|
+
.vm-context {
|
|
209
209
|
padding: 16px 15px 10px 10px;
|
|
210
210
|
height: 100%;
|
|
211
211
|
display: flex;
|
|
@@ -218,12 +218,12 @@ const validateSendData = async (): Promise<void> => {
|
|
|
218
218
|
h4 {
|
|
219
219
|
font-weight: 700;
|
|
220
220
|
font-size: 13px;
|
|
221
|
-
color: var(--
|
|
221
|
+
color: var(--vm-context-title);
|
|
222
222
|
}
|
|
223
223
|
p {
|
|
224
224
|
font-weight: 400;
|
|
225
225
|
font-size: 13px;
|
|
226
|
-
color: var(--
|
|
226
|
+
color: var(--vm-context-sub-title);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
@@ -306,11 +306,11 @@ const validateSendData = async (): Promise<void> => {
|
|
|
306
306
|
|
|
307
307
|
<style>
|
|
308
308
|
:root {
|
|
309
|
-
--
|
|
310
|
-
--
|
|
309
|
+
--vm-context-title: #333;
|
|
310
|
+
--vm-context-sub-title: #000;
|
|
311
311
|
}
|
|
312
312
|
:root.dark-theme {
|
|
313
|
-
--
|
|
314
|
-
--
|
|
313
|
+
--vm-context-title: #adbbc4;
|
|
314
|
+
--vm-context-sub-title: #adbbc4;
|
|
315
315
|
}
|
|
316
316
|
</style>
|