bfg-common 1.5.490 → 1.5.491
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.
- package/components/common/vm/actions/add/Add.vue +2 -2
- package/components/common/vm/actions/add/New.vue +1 -1
- package/components/common/vm/actions/add/Old.vue +1 -1
- package/components/common/vm/actions/add/lib/config/steps.ts +347 -331
- package/components/common/vm/actions/clone/Clone.vue +1 -1
- package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +1 -1
- package/components/common/vm/actions/common/select/name/Name.vue +6 -6
- package/components/common/vm/actions/common/select/name/New.vue +3 -4
- package/components/common/vm/actions/common/select/name/Old.vue +4 -5
- package/components/common/vm/actions/register/Register.vue +1 -1
- package/package.json +1 -1
- package/components/common/vmt/actions/add/Add.vue +0 -549
- package/components/common/vmt/actions/add/New.vue +0 -346
- package/components/common/vmt/actions/add/Old.vue +0 -305
- package/components/common/vmt/actions/add/lib/config/steps.ts +0 -107
- package/components/common/vmt/actions/add/lib/models/interfaces.ts +0 -23
@@ -29,7 +29,7 @@
|
|
29
29
|
selectedStep.id === dynamicSteps.selectNameFolder
|
30
30
|
"
|
31
31
|
:name-form-submit="nameFormSubmit"
|
32
|
-
:
|
32
|
+
:has-location="props.project === 'sphere'"
|
33
33
|
:data-center="props.dataCenter"
|
34
34
|
@submit="onChangeName(...$event)"
|
35
35
|
@check-name="emits('check-name', $event)"
|
@@ -27,7 +27,7 @@
|
|
27
27
|
v-show="selectedStep.id === dynamicSteps.selectName"
|
28
28
|
:show="selectedStep.id === dynamicSteps.selectName"
|
29
29
|
:name-form-submit="nameFormSubmit"
|
30
|
-
:
|
30
|
+
:has-location="props.project === 'sphere'"
|
31
31
|
@submit="onChangeName(...$event)"
|
32
32
|
@check-name="emits('check-name', $event)"
|
33
33
|
/>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
v-if="isNewView"
|
4
4
|
v-model:vm-name="vmName"
|
5
5
|
v-model:is-show-help="isShowHelp"
|
6
|
-
:
|
6
|
+
:has-location="props.hasLocation"
|
7
7
|
:errors="errors"
|
8
8
|
:data-center="props.dataCenter"
|
9
9
|
@remove-validation-errors="onRemoveValidationErrors"
|
@@ -13,7 +13,7 @@
|
|
13
13
|
v-else
|
14
14
|
v-model:vm-name="vmName"
|
15
15
|
v-model:is-show-help="isShowHelp"
|
16
|
-
:
|
16
|
+
:has-location="props.hasLocation"
|
17
17
|
:is-vmt="props.isVmt"
|
18
18
|
:errors="errors"
|
19
19
|
:data-center="props.dataCenter"
|
@@ -25,22 +25,22 @@
|
|
25
25
|
<script setup lang="ts">
|
26
26
|
// import { API_UI_I_Error } from '~/lib/models/store/interfaces'
|
27
27
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
28
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
29
28
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
30
29
|
|
31
30
|
const props = withDefaults(
|
32
31
|
defineProps<{
|
33
32
|
nameFormSubmit: null | Function
|
34
33
|
show: boolean
|
35
|
-
|
34
|
+
hasLocation?: boolean
|
36
35
|
isVmt?: boolean
|
37
36
|
validateEmptyName?: boolean
|
38
37
|
dataCenter?: UI_I_TreeNode // для сферы
|
39
38
|
existName?: string
|
40
39
|
}>(),
|
41
40
|
{
|
42
|
-
|
41
|
+
hasLocation: false,
|
43
42
|
isVmt: false,
|
43
|
+
validateEmptyName: false,
|
44
44
|
dataCenter: undefined,
|
45
45
|
existName: undefined,
|
46
46
|
}
|
@@ -100,7 +100,7 @@ const submit = async (cb: Function): Promise<void> => {
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
|
103
|
-
if (props.
|
103
|
+
if (props.hasLocation) {
|
104
104
|
// const isDatacenterFolder = isParentDatacenter(selectedNode.value)
|
105
105
|
|
106
106
|
if (
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div :class="['select-name', { 'pb-6': props.
|
2
|
+
<div :class="['select-name', { 'pb-6': props.hasLocation }]">
|
3
3
|
<client-only>
|
4
4
|
<Teleport to="#name-alert-wrapper">
|
5
5
|
<ui-alert
|
@@ -41,7 +41,7 @@
|
|
41
41
|
</div>
|
42
42
|
</div>
|
43
43
|
|
44
|
-
<template v-if="props.
|
44
|
+
<template v-if="props.hasLocation">
|
45
45
|
<div class="location">
|
46
46
|
<span class="location-label">{{ localization.common.location }}</span>
|
47
47
|
|
@@ -66,7 +66,6 @@
|
|
66
66
|
<script setup lang="ts">
|
67
67
|
// import { API_UI_I_Error } from '~/lib/models/store/interfaces'
|
68
68
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
69
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
70
69
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
71
70
|
|
72
71
|
const vmName = defineModel<string>('vmName', { required: true })
|
@@ -74,7 +73,7 @@ const vmName = defineModel<string>('vmName', { required: true })
|
|
74
73
|
|
75
74
|
const props = withDefaults(
|
76
75
|
defineProps<{
|
77
|
-
|
76
|
+
hasLocation: boolean
|
78
77
|
errors: string[]
|
79
78
|
dataCenter?: UI_I_TreeNode // для сферы
|
80
79
|
}>(),
|
@@ -40,7 +40,7 @@
|
|
40
40
|
</div>
|
41
41
|
</form>
|
42
42
|
|
43
|
-
<template v-if="props.
|
43
|
+
<template v-if="props.hasLocation">
|
44
44
|
<p class="new-vm-name-and-folder-instructions mt-1">
|
45
45
|
{{ locationDescription }}
|
46
46
|
</p>
|
@@ -57,7 +57,6 @@
|
|
57
57
|
<script setup lang="ts">
|
58
58
|
// import { API_UI_I_Error } from '~/lib/models/store/interfaces'
|
59
59
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
60
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
61
60
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
62
61
|
|
63
62
|
const vmName = defineModel<string>('vmName', { required: true })
|
@@ -65,13 +64,13 @@ const isShowHelp = defineModel<boolean>('isShowHelp', { required: true })
|
|
65
64
|
|
66
65
|
const props = withDefaults(
|
67
66
|
defineProps<{
|
68
|
-
|
67
|
+
hasLocation: boolean
|
69
68
|
errors: string[]
|
70
69
|
isVmt: boolean
|
71
|
-
dataCenter?: UI_I_TreeNode // для сферы
|
70
|
+
dataCenter?: UI_I_TreeNode | null // для сферы
|
72
71
|
}>(),
|
73
72
|
{
|
74
|
-
dataCenter:
|
73
|
+
dataCenter: null,
|
75
74
|
}
|
76
75
|
)
|
77
76
|
const emits = defineEmits<{
|
@@ -28,7 +28,7 @@
|
|
28
28
|
selectedStep.id === dynamicSteps.selectNameFolder
|
29
29
|
"
|
30
30
|
:name-form-submit="nameFormSubmit"
|
31
|
-
:
|
31
|
+
:has-location="props.project === 'sphere'"
|
32
32
|
:data-center="props.dataCenter"
|
33
33
|
@submit="onChangeName(...$event)"
|
34
34
|
@check-name="emits('check-name', $event)"
|