bfg-common 1.6.45 → 1.6.47
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/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +6 -5
- package/package.json +1 -1
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
<div class="
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
<div class="reconnect-modal-container">
|
|
3
|
+
<ui-modal
|
|
4
|
+
:title="props.title"
|
|
5
|
+
:texts="modalTexts"
|
|
6
|
+
test-id="reconnect-modal"
|
|
7
|
+
size="sm"
|
|
8
|
+
width="560px"
|
|
9
|
+
show
|
|
10
|
+
@hide="emits('logout')"
|
|
11
|
+
@submit="emits('reconnect')"
|
|
12
|
+
>
|
|
13
|
+
<template #content>
|
|
14
|
+
<div class="reconnect-content">
|
|
15
|
+
<div class="icon-content flex items-center gap-2">
|
|
16
|
+
<span class="icon-sessions"></span>
|
|
17
|
+
<span class="description-text">{{
|
|
18
|
+
localization.common.reconnectDesc
|
|
19
|
+
}}</span>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="timer-block mt-4">
|
|
22
|
+
<common-countdown-timer
|
|
23
|
+
:timer="props.timer"
|
|
24
|
+
:total-time="props.totalTime"
|
|
25
|
+
is-hide-seconds-text
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
19
28
|
</div>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
<template #footerLeftContent>
|
|
30
|
-
<span></span>
|
|
31
|
-
</template>
|
|
32
|
-
</ui-modal>
|
|
29
|
+
</template>
|
|
30
|
+
<template #footerLeftContent>
|
|
31
|
+
<span></span>
|
|
32
|
+
</template>
|
|
33
|
+
</ui-modal>
|
|
34
|
+
</div>
|
|
33
35
|
</template>
|
|
34
36
|
|
|
35
37
|
<script lang="ts" setup>
|
|
@@ -56,6 +58,12 @@ const modalTexts = ref<UI_I_ModalTexts>({
|
|
|
56
58
|
</script>
|
|
57
59
|
|
|
58
60
|
<style lang="scss" scoped>
|
|
61
|
+
.reconnect-modal-container {
|
|
62
|
+
:deep(.modal), :deep(.modal-background) {
|
|
63
|
+
z-index: calc(var(--z-modal) + 3);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
59
67
|
.reconnect-content {
|
|
60
68
|
padding: 8px 32px 8px 32px;
|
|
61
69
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="currentComponent"
|
|
4
|
-
v-model:cd-dvd-media="
|
|
4
|
+
v-model:cd-dvd-media="localCdDvdMedia"
|
|
5
5
|
:index="props.index"
|
|
6
6
|
@browse="emits('browse')"
|
|
7
7
|
/>
|
|
@@ -24,6 +24,19 @@ const currentComponent = computed(() =>
|
|
|
24
24
|
? defineAsyncComponent(() => import('./New.vue'))
|
|
25
25
|
: defineAsyncComponent(() => import('./Old.vue'))
|
|
26
26
|
)
|
|
27
|
+
|
|
28
|
+
const localCdDvdMedia = ref<string>('')
|
|
29
|
+
|
|
30
|
+
watch(cdDvdMedia, (newValue) => {
|
|
31
|
+
localCdDvdMedia.value = newValue.replace(/^([^:]+):\//, '[$1]:/')
|
|
32
|
+
}, { immediate: true })
|
|
33
|
+
|
|
34
|
+
watch(localCdDvdMedia, (newValue) => {
|
|
35
|
+
const cleaned = newValue.replace(/^\[([^\]]+)\]:\//, '$1:/')
|
|
36
|
+
if (cleaned !== cdDvdMedia.value) {
|
|
37
|
+
cdDvdMedia.value = cleaned
|
|
38
|
+
}
|
|
39
|
+
})
|
|
27
40
|
</script>
|
|
28
41
|
|
|
29
42
|
<style scoped></style>
|
|
@@ -80,9 +80,9 @@ const isRunning = computed<boolean>(() => {
|
|
|
80
80
|
})
|
|
81
81
|
|
|
82
82
|
// props.state === 2 => is run
|
|
83
|
-
if (props.state !== 2) {
|
|
84
|
-
|
|
85
|
-
}
|
|
83
|
+
// if (props.state !== 2) {
|
|
84
|
+
// model.value.cpu.max_vcpus = capabilities.value.maxCpus
|
|
85
|
+
// }
|
|
86
86
|
|
|
87
87
|
const isDisabled = computed<boolean>(() => {
|
|
88
88
|
return props.state === 2
|
|
@@ -105,7 +105,8 @@ watch(
|
|
|
105
105
|
if (newValue) {
|
|
106
106
|
model.value.cpu.max_vcpus = Math.max(
|
|
107
107
|
model.value.cpu.vcpus,
|
|
108
|
-
model.value.cpu.max_vcpus
|
|
108
|
+
// model.value.cpu.max_vcpus
|
|
109
|
+
capabilities.value.maxCpus
|
|
109
110
|
)
|
|
110
111
|
return
|
|
111
112
|
}
|
|
@@ -145,7 +146,7 @@ const maxCpuOptions = computed<UI_I_OptionItem[]>(() =>
|
|
|
145
146
|
localization.value,
|
|
146
147
|
model.value.cpu.vcpus,
|
|
147
148
|
// model.value.cpu.max_vcpus
|
|
148
|
-
capabilities.value.maxCpus
|
|
149
|
+
capabilities.value.maxCpus
|
|
149
150
|
)
|
|
150
151
|
)
|
|
151
152
|
// const selectedMaxCpu = ref<number>(1)
|