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.
@@ -1,35 +1,37 @@
1
1
  <template>
2
- <ui-modal
3
- :title="props.title"
4
- :texts="modalTexts"
5
- test-id="reconnect-modal"
6
- size="sm"
7
- width="560px"
8
- show
9
- @hide="emits('logout')"
10
- @submit="emits('reconnect')"
11
- >
12
- <template #content>
13
- <div class="reconnect-content">
14
- <div class="icon-content flex items-center gap-2">
15
- <span class="icon-sessions"></span>
16
- <span class="description-text">{{
17
- localization.common.reconnectDesc
18
- }}</span>
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
- <div class="timer-block mt-4">
21
- <common-countdown-timer
22
- :timer="props.timer"
23
- :total-time="props.totalTime"
24
- is-hide-seconds-text
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="cdDvdMedia"
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>
@@ -12,6 +12,7 @@
12
12
  <input
13
13
  id="vm-wizard-dvd-media-input"
14
14
  v-model="cdDvdMedia"
15
+ :title="cdDvdMedia"
15
16
  data-id="vm-wizard-dvd-media-input"
16
17
  type="text"
17
18
  disabled
@@ -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
- model.value.cpu.max_vcpus = capabilities.value.maxCpus
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)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.6.45",
4
+ "version": "1.6.47",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",