bfg-common 1.4.85 → 1.4.86
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/atoms/stack/StackBlock.vue +5 -5
- package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +5 -6
- package/components/common/wizards/vm/migrate/select/targetServer/new/lib/config/defaultForm.ts +4 -1
- package/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces.ts +13 -0
- package/package.json +1 -1
|
@@ -65,11 +65,11 @@ const emits = defineEmits<{
|
|
|
65
65
|
}>()
|
|
66
66
|
|
|
67
67
|
const open = ref<boolean>(props.openByDefault || false)
|
|
68
|
-
const onToggle = (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
const onToggle = (): void => {
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
open.value = !open.value
|
|
71
|
+
emits('toggle', open.value)
|
|
72
|
+
}, 0)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const onRemove = (): void => {
|
|
@@ -113,8 +113,7 @@
|
|
|
113
113
|
<script lang="ts" setup>
|
|
114
114
|
import type { UI_I_ValidationTouchResult } from '~/lib/models/plugins/validation/interfaces'
|
|
115
115
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
116
|
-
import type {
|
|
117
|
-
import type { UI_I_ConfigurationSendDataNfs } from '~//components/common/wizards/datastore/add/nfs/configuration/lib/models/interfaces'
|
|
116
|
+
import type { UI_I_TargetServerData, UI_I_FormValidationTargetServer } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
|
|
118
117
|
import { checkValidityName } from '~/components/common/wizards/datastore/add/lib/utils'
|
|
119
118
|
import { defaultFormFunc } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/config/defaultForm'
|
|
120
119
|
|
|
@@ -124,15 +123,15 @@ const props = defineProps<{
|
|
|
124
123
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
125
124
|
const emits = defineEmits<{
|
|
126
125
|
(event: 'loading', value: boolean): void
|
|
127
|
-
(event: 'next', value:
|
|
126
|
+
(event: 'next', value: UI_I_TargetServerData): void
|
|
128
127
|
}>()
|
|
129
128
|
const { $validation } = useNuxtApp()
|
|
130
129
|
|
|
131
130
|
const validation = $validation.call({})
|
|
132
|
-
const defaultForm:
|
|
131
|
+
const defaultForm: UI_I_FormValidationTargetServer = defaultFormFunc(
|
|
133
132
|
localization.value
|
|
134
133
|
)
|
|
135
|
-
const form = ref<
|
|
134
|
+
const form = ref<UI_I_FormValidationTargetServer>(useDeepCopy(defaultForm))
|
|
136
135
|
const setForm = (): void => {
|
|
137
136
|
form.value = useDeepCopy(defaultForm)
|
|
138
137
|
validation.setForm(form)
|
|
@@ -237,7 +236,7 @@ const submit = async (): Promise<void> => {
|
|
|
237
236
|
|
|
238
237
|
resetValidation()
|
|
239
238
|
|
|
240
|
-
const configurationData:
|
|
239
|
+
const configurationData: UI_I_TargetServerData = {
|
|
241
240
|
name: name.value,
|
|
242
241
|
folder: folder.value,
|
|
243
242
|
server: server.value,
|
package/components/common/wizards/vm/migrate/select/targetServer/new/lib/config/defaultForm.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_FormValidationTargetServer } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
|
|
2
3
|
|
|
3
|
-
export const defaultFormFunc = (
|
|
4
|
+
export const defaultFormFunc = (
|
|
5
|
+
localization: UI_I_Localization
|
|
6
|
+
): UI_I_FormValidationTargetServer => {
|
|
4
7
|
return {
|
|
5
8
|
name: {
|
|
6
9
|
value: '',
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UI_I_Validation } from '~/lib/models/plugins/validation/interfaces'
|
|
2
|
+
|
|
3
|
+
export interface UI_I_FormValidationTargetServer {
|
|
4
|
+
name: UI_I_Validation
|
|
5
|
+
folder: UI_I_Validation
|
|
6
|
+
server: UI_I_Validation
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface UI_I_TargetServerData {
|
|
10
|
+
name: string
|
|
11
|
+
folder: string
|
|
12
|
+
server: string
|
|
13
|
+
}
|