bfg-common 1.5.425 → 1.5.427

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.
@@ -5,10 +5,10 @@ import type {
5
5
  export const tableKeys: UI_T_DatastoreTableKeysTuple = [
6
6
  'name',
7
7
  'state',
8
- 'capacity',
9
- 'capacity',
10
- 'capacity',
11
- 'capacity',
8
+ 'capacity_mb',
9
+ 'provisioned_mb',
10
+ 'free_mb',
11
+ 'used_mb',
12
12
  'type_text',
13
13
  'location'
14
14
  ]
@@ -81,13 +81,13 @@ export const bodyItems = (
81
81
  },
82
82
  {
83
83
  key: 'col2',
84
- text: $binary.round(datastore[tableKeys[2]].capacity_mb, false, lang),
84
+ text: $binary.round(datastore.capacity[tableKeys[2]], false, lang),
85
85
  id: datastore.id,
86
86
  },
87
87
  {
88
88
  key: 'col3',
89
89
  text: $binary.round(
90
- datastore[tableKeys[3]].provisioned_mb,
90
+ datastore.capacity[tableKeys[3]],
91
91
  false,
92
92
  lang
93
93
  ),
@@ -95,12 +95,12 @@ export const bodyItems = (
95
95
  },
96
96
  {
97
97
  key: 'col4',
98
- text: $binary.round(datastore[tableKeys[4]].free_mb, false, lang),
98
+ text: $binary.round(datastore.capacity[tableKeys[4]], false, lang),
99
99
  id: datastore.id,
100
100
  },
101
101
  {
102
102
  key: 'col5',
103
- text: $binary.round(datastore[tableKeys[5]].used_mb, false, lang),
103
+ text: $binary.round(datastore.capacity[tableKeys[5]], false, lang),
104
104
  id: datastore.id,
105
105
  },
106
106
  {
@@ -1,10 +1,10 @@
1
1
  export type UI_T_DatastoreTableKeysTuple = [
2
2
  'name',
3
3
  'state',
4
- 'capacity',
5
- 'capacity',
6
- 'capacity',
7
- 'capacity',
4
+ 'capacity_mb',
5
+ 'provisioned_mb',
6
+ 'free_mb',
7
+ 'used_mb',
8
8
  'type_text',
9
9
  'location'
10
10
  ]
@@ -1,23 +1,23 @@
1
- <template>
2
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-new
3
- v-if="isNewView"
4
- :free-gb="freeGb"
5
- />
6
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-old
7
- v-else
8
- :free-gb="freeGb"
9
- />
10
- </template>
11
-
12
- <script setup lang="ts">
13
- const props = defineProps<{
14
- freeMb: number
15
- }>()
16
-
17
- const { $store, $binary }: any = useNuxtApp()
18
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
19
-
20
- const freeGb = computed<number>(() => $binary.round(props.freeMb))
21
- </script>
22
-
23
- <style scoped></style>
1
+ <template>
2
+ <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-new
3
+ v-if="isNewView"
4
+ :free-gb="freeGb"
5
+ />
6
+ <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-old
7
+ v-else
8
+ :free-gb="freeGb"
9
+ />
10
+ </template>
11
+
12
+ <script setup lang="ts">
13
+ const props = defineProps<{
14
+ freeMb: number
15
+ }>()
16
+
17
+ const { $store, $binary }: any = useNuxtApp()
18
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
19
+
20
+ const freeGb = computed<number>(() => $binary.round(props.freeMb))
21
+ </script>
22
+
23
+ <style scoped></style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.425",
4
+ "version": "1.5.427",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",