bfg-common 1.3.291 → 1.3.293
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.
|
@@ -362,6 +362,11 @@ export default class Wizard {
|
|
|
362
362
|
if (st.id === stepId)
|
|
363
363
|
return { ...st, status: UI_E_WIZARD_STATUS.SELECTED }
|
|
364
364
|
|
|
365
|
+
// TODO Было сделано на скорую руку
|
|
366
|
+
console.log(st.status, 3333333, st.id > stepId);
|
|
367
|
+
if (st.id > stepId && st.status === UI_E_WIZARD_STATUS.SELECTED)
|
|
368
|
+
return { ...st, status: UI_E_WIZARD_STATUS.COMPLETED }
|
|
369
|
+
|
|
365
370
|
return st
|
|
366
371
|
})
|
|
367
372
|
|
|
@@ -523,6 +523,8 @@ const validateSendData = async (
|
|
|
523
523
|
if (data) {
|
|
524
524
|
stepHasError = true
|
|
525
525
|
selectedNavItem.value = data[0]
|
|
526
|
+
console.log(data[1], 1111);
|
|
527
|
+
data[1] !== null && wizard.selectStepHard(data[1])
|
|
526
528
|
// data[1] !== null && (stepPosition.value = data[1])
|
|
527
529
|
}
|
|
528
530
|
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
export enum UI_E_FieldsSphere {
|
|
2
|
-
'compute_resource' =
|
|
2
|
+
'compute_resource' = 3,
|
|
3
|
+
'storage.id' = 4,
|
|
4
|
+
'storage.name' = 4,
|
|
5
|
+
'storage.type' = 4,
|
|
6
|
+
'storage.pool' = 4,
|
|
7
|
+
'compatibility' = 5,
|
|
8
|
+
'guest_os_family' = 6,
|
|
9
|
+
'guest_os_version' = 6,
|
|
10
|
+
'machine_type' = 6,
|
|
11
|
+
'cpu.vcpus' = 7,
|
|
12
|
+
'cpu.max_vcpus' = 7,
|
|
13
|
+
'cpu.shares' = 7,
|
|
14
|
+
'cpu.core_per_socket' = 7,
|
|
15
|
+
'cpu.model' = 7,
|
|
16
|
+
'memory.size_mb' = 7,
|
|
17
|
+
'memory.limit_mb' = 7,
|
|
18
|
+
'memory.reservation_mb' = 7,
|
|
19
|
+
'video_card.adapter' = 7,
|
|
20
|
+
'video_card.displays' = 7,
|
|
21
|
+
'video_card.memory_mb' = 7,
|
|
22
|
+
'options.remote_console.type' = 7,
|
|
23
|
+
'options.remote_console.spice.img_compression' = 7,
|
|
24
|
+
'options.remote_console.spice.jpeg_compression' = 7,
|
|
25
|
+
'options.remote_console.spice.zlib_glz_compression' = 7,
|
|
26
|
+
'options.remote_console.spice.streaming_mode' = 7,
|
|
27
|
+
'options.boot_options.firmware' = 7,
|
|
28
|
+
'disk_devices' = 7,
|
|
29
|
+
'network_devices' = 7,
|
|
30
|
+
}
|
|
31
|
+
export enum UI_E_FieldsProcurator {
|
|
3
32
|
'storage.id' = 3,
|
|
4
33
|
'storage.name' = 3,
|
|
5
34
|
'storage.type' = 3,
|
|
@@ -8,54 +37,25 @@ export enum UI_E_FieldsSphere {
|
|
|
8
37
|
'guest_os_family' = 5,
|
|
9
38
|
'guest_os_version' = 5,
|
|
10
39
|
'machine_type' = 5,
|
|
11
|
-
'cpu.vcpus' =
|
|
12
|
-
'cpu.max_vcpus' =
|
|
13
|
-
'cpu.shares' =
|
|
14
|
-
'cpu.core_per_socket' =
|
|
15
|
-
'cpu.model' =
|
|
16
|
-
'memory.size_mb' =
|
|
17
|
-
'memory.limit_mb' =
|
|
18
|
-
'memory.reservation_mb' =
|
|
19
|
-
'video_card.adapter' =
|
|
20
|
-
'video_card.displays' =
|
|
21
|
-
'video_card.memory_mb' =
|
|
22
|
-
'options.remote_console.type' =
|
|
23
|
-
'options.remote_console.spice.img_compression' =
|
|
24
|
-
'options.remote_console.spice.jpeg_compression' =
|
|
25
|
-
'options.remote_console.spice.zlib_glz_compression' =
|
|
26
|
-
'options.remote_console.spice.streaming_mode' =
|
|
27
|
-
'options.boot_options.firmware' =
|
|
28
|
-
'disk_devices' =
|
|
29
|
-
'network_devices' =
|
|
30
|
-
}
|
|
31
|
-
export enum UI_E_FieldsProcurator {
|
|
32
|
-
'storage.id' = 2,
|
|
33
|
-
'storage.name' = 2,
|
|
34
|
-
'storage.type' = 2,
|
|
35
|
-
'storage.pool' = 2,
|
|
36
|
-
'compatibility' = 3,
|
|
37
|
-
'guest_os_family' = 4,
|
|
38
|
-
'guest_os_version' = 4,
|
|
39
|
-
'machine_type' = 4,
|
|
40
|
-
'cpu.vcpus' = 5,
|
|
41
|
-
'cpu.max_vcpus' = 5,
|
|
42
|
-
'cpu.shares' = 5,
|
|
43
|
-
'cpu.core_per_socket' = 5,
|
|
44
|
-
'cpu.model' = 5,
|
|
45
|
-
'memory.size_mb' = 5,
|
|
46
|
-
'memory.limit_mb' = 5,
|
|
47
|
-
'memory.reservation_mb' = 5,
|
|
48
|
-
'video_card.adapter' = 5,
|
|
49
|
-
'video_card.displays' = 5,
|
|
50
|
-
'video_card.memory_mb' = 5,
|
|
51
|
-
'options.remote_console.type' = 5,
|
|
52
|
-
'options.remote_console.spice.img_compression' = 5,
|
|
53
|
-
'options.remote_console.spice.jpeg_compression' = 5,
|
|
54
|
-
'options.remote_console.spice.zlib_glz_compression' = 5,
|
|
55
|
-
'options.remote_console.spice.streaming_mode' = 5,
|
|
56
|
-
'options.boot_options.firmware' = 5,
|
|
57
|
-
'disk_devices' = 5,
|
|
58
|
-
'network_devices' = 5,
|
|
40
|
+
'cpu.vcpus' = 4,
|
|
41
|
+
'cpu.max_vcpus' = 4,
|
|
42
|
+
'cpu.shares' = 4,
|
|
43
|
+
'cpu.core_per_socket' = 4,
|
|
44
|
+
'cpu.model' = 4,
|
|
45
|
+
'memory.size_mb' = 4,
|
|
46
|
+
'memory.limit_mb' = 4,
|
|
47
|
+
'memory.reservation_mb' = 4,
|
|
48
|
+
'video_card.adapter' = 4,
|
|
49
|
+
'video_card.displays' = 4,
|
|
50
|
+
'video_card.memory_mb' = 4,
|
|
51
|
+
'options.remote_console.type' = 4,
|
|
52
|
+
'options.remote_console.spice.img_compression' = 4,
|
|
53
|
+
'options.remote_console.spice.jpeg_compression' = 4,
|
|
54
|
+
'options.remote_console.spice.zlib_glz_compression' = 4,
|
|
55
|
+
'options.remote_console.spice.streaming_mode' = 4,
|
|
56
|
+
'options.boot_options.firmware' = 4,
|
|
57
|
+
'disk_devices' = 4,
|
|
58
|
+
'network_devices' = 4,
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// TODO remove because not used
|