bfg-common 1.5.298 → 1.5.301

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.
@@ -237,7 +237,7 @@ const sharesType = ref<string>('2000')
237
237
  // const iommu = ref<boolean>(false)
238
238
 
239
239
  // const cpuModel = ref<string>(props.cpuModels[0]?.value || '')
240
- const cpuModel = ref<string>('host-model') // PNCWEB-389
240
+ const cpuModel = ref<string>('') // PNCWEB-389
241
241
  watch(
242
242
  () => props.cpuModels,
243
243
  (newValue) => {
@@ -245,7 +245,7 @@ watch(
245
245
  }
246
246
  )
247
247
  const passthroughHostCpu = ref<boolean>(false)
248
- const hostModelCpu = ref<boolean>(false)
248
+ const hostModelCpu = ref<boolean>(true)
249
249
 
250
250
  // const isShowCpuHelp = ref<boolean>(false)
251
251
 
@@ -17,7 +17,7 @@
17
17
  :hard-disk-invalid="hardDiskInvalid"
18
18
  :error-text="hardDiskLocalAndApiErrorsTexts"
19
19
  :hard-disk-type-error-local-text="hardDiskTypeErrorLocalText"
20
- :is-disabled-size="isDisabledSize"
20
+ :is-disabled-size="isDisabledSize || isRunning"
21
21
  :hard-disk-type-options="hardDiskTypeOptions"
22
22
  :max-hard-disk="maxHardDisk"
23
23
  :location="location"
@@ -58,7 +58,7 @@
58
58
  :hard-disk-invalid="hardDiskInvalid"
59
59
  :error-text="hardDiskLocalAndApiErrorsTexts"
60
60
  :hard-disk-type-error-local-text="hardDiskTypeErrorLocalText"
61
- :is-disabled-size="isDisabledSize"
61
+ :is-disabled-size="isDisabledSize || isRunning"
62
62
  :hard-disk-type-options="hardDiskTypeOptions"
63
63
  :max-hard-disk="maxHardDisk"
64
64
  :location="location"
@@ -123,14 +123,6 @@ export const capabilities = ref<UI_I_Compatibility>({
123
123
  text: 'Skylake-Client',
124
124
  value: 'Skylake-Client',
125
125
  },
126
- {
127
- text: 'Host Model',
128
- value: 'host-model',
129
- },
130
- {
131
- text: 'Host Passthrough',
132
- value: 'host-passthrough',
133
- },
134
126
  ],
135
127
  guestOsVersions: {
136
128
  windows: [
@@ -17,12 +17,16 @@ export const mapCapabilities = (
17
17
  }
18
18
  })
19
19
  // CPU Models
20
- capabilities.value.cpuModels = Object.keys(capabilitiesFromApi.cpu_models).map(
20
+ capabilities.value.cpuModels = []
21
+
22
+ Object.keys(capabilitiesFromApi.cpu_models).forEach(
21
23
  (key) => {
22
- return {
24
+ if(key === 'host-model' || key === 'host-passthrough') return
25
+
26
+ capabilities.value.cpuModels.push({
23
27
  text: capabilitiesFromApi.cpu_models[key],
24
28
  value: key,
25
- }
29
+ })
26
30
  }
27
31
  )
28
32
 
@@ -30,12 +30,7 @@
30
30
  </h3></template
31
31
  >
32
32
  <template #name="{ item }">
33
- <ui-icon
34
- name="datastores"
35
- width="18"
36
- height="18"
37
- class="mr-1 row-datastores-icon"
38
- />
33
+ <ui-icon name="datastores" width="18" height="18" class="mr-1" />
39
34
  {{ item.text }}
40
35
  </template>
41
36
  <template #state="{ item }">
@@ -169,18 +164,8 @@ const onSelectRow = (selectedData: UI_I_DataTable): void => {
169
164
  --select-storage-compatibility-bg-color: #1b2a371f;
170
165
  --select-storage-compatibility-description-color: #e9eaec;
171
166
  --select-storage-compatibility-empty-description-color: #9da6ad;
172
- --select-storage-compatibility-table-column-button-hover-bg: linear-gradient(
173
- 0deg,
174
- rgba(233, 234, 236, 0.04) 0%,
175
- rgba(233, 234, 236, 0.04) 100%
176
- ),
177
- rgba(27, 42, 55, 0.24);
178
- --select-storage-compatibility-table-column-button-active-hover-bg: linear-gradient(
179
- 0deg,
180
- rgba(43, 162, 222, 0.08) 0%,
181
- rgba(43, 162, 222, 0.08) 100%
182
- ),
183
- rgba(27, 42, 55, 0.24);
167
+ --select-storage-compatibility-table-column-button-hover-bg: #b8bcc10a;
168
+ --select-storage-compatibility-table-column-button-active-hover-bg: #2785b614;
184
169
  }
185
170
  </style>
186
171
  <style scoped lang="scss">
@@ -282,8 +267,5 @@ const onSelectRow = (selectedData: UI_I_DataTable): void => {
282
267
  }
283
268
  }
284
269
  }
285
- .row-datastores-icon {
286
- min-width: 18px;
287
- }
288
270
  }
289
271
  </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.298",
4
+ "version": "1.5.301",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",