bfg-common 1.4.68 → 1.4.70

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.
@@ -17,9 +17,6 @@
17
17
  :class="['label-text-normal', props.disabled && 'div-disabled']"
18
18
  >{{ localization.common.enableCpuHotAdd }}</label
19
19
  >
20
- <div style="display: none">
21
- {{ enableCpuHotAddLocal }}//{{ props.disabled }}
22
- </div>
23
20
  </template>
24
21
  </atoms-stack-block>
25
22
  </div>
@@ -31,27 +28,27 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
31
28
  const localization = computed<UI_I_Localization>(() => useLocal())
32
29
 
33
30
  const props = defineProps<{
34
- // enableCpuHotAdd: boolean
31
+ enableCpuHotAdd: boolean
35
32
  disabled: boolean
36
33
  }>()
37
- // const emits = defineEmits<{
38
- // (event: 'update:enable-cpu-hot-add', value: boolean): void
39
- // }>()
34
+ const emits = defineEmits<{
35
+ (event: 'update:enable-cpu-hot-add', value: boolean): void
36
+ }>()
40
37
 
41
38
  // const enableCpuHotAddLocal = ref(false)
42
- const enableCpuHotAddLocal = defineModel('enableCpuHotAdd', {
43
- required: true,
44
- })
45
- // const enableCpuHotAddLocal = computed<boolean>({
46
- // get() {
47
- // console.log(props.enableCpuHotAdd, 111)
48
- // return props.enableCpuHotAdd
49
- // },
50
- // set(newValue) {
51
- // console.log(newValue, 222)
52
- // emits('update:enable-cpu-hot-add', newValue)
53
- // },
39
+ // const enableCpuHotAddLocal = defineModel('enableCpuHotAdd', {
40
+ // required: true,
54
41
  // })
42
+ const enableCpuHotAddLocal = computed<boolean>({
43
+ get() {
44
+ console.log(props.enableCpuHotAdd, 111)
45
+ return props.enableCpuHotAdd
46
+ },
47
+ set(newValue) {
48
+ console.log(newValue, 222)
49
+ emits('update:enable-cpu-hot-add', newValue)
50
+ },
51
+ })
55
52
  </script>
56
53
 
57
54
  <style scoped lang="scss">
@@ -6,8 +6,6 @@ export const mapCapabilities = (
6
6
  ): void => {
7
7
  const { $binary } = useNuxtApp()
8
8
 
9
- capabilities.dataFromApi = capabilitiesFromApi
10
-
11
9
  // Machine Types
12
10
  capabilities.machineTypes = Object.keys(
13
11
  capabilitiesFromApi.machine_types
@@ -31,5 +31,4 @@ export interface UI_I_Compatibility {
31
31
  bus: UI_I_ArbitraryObject<UI_I_OptionItem[]>
32
32
  maxCpus: number
33
33
  maxMemory: number
34
- dataFromApi?: UI_I_Capabilities
35
34
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.68",
4
+ "version": "1.4.70",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",