bfg-common 1.3.348 → 1.3.350

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.
@@ -42,6 +42,7 @@
42
42
  :device-selection-submit="deviceSelectionSubmit"
43
43
  :datacenter-hosts="props.datacenterHosts"
44
44
  :is-main-filter="props.isMainFilter"
45
+ :host-id="props.hostId"
45
46
  @loading="(e) => (loading = e)"
46
47
  @submit="onSaveAndNextSharedStorm"
47
48
  @main-filter="emits('main-filter', $event)"
@@ -97,6 +98,7 @@ const props = defineProps<{
97
98
  datacenterHosts?: UI_I_SelectHostOptions[]
98
99
  nfsHosts?: any
99
100
  isMainFilter?: boolean
101
+ hostId?: string
100
102
  }>()
101
103
  const emits = defineEmits<{
102
104
  (event: 'hide'): void
@@ -11,6 +11,7 @@
11
11
  :mode="props.mode"
12
12
  :datacenter-hosts="props.datacenterHosts"
13
13
  :is-main-filter="props.isMainFilter"
14
+ :host-id="props.hostId"
14
15
  @loading="(e) => emits('loading', e)"
15
16
  @submit="(e) => emits('submit', e)"
16
17
  @main-filter="emits('main-filter', $event)"
@@ -50,6 +51,7 @@ const props = defineProps<{
50
51
  datastoreType: UI_T_DatastoreType
51
52
  datacenterHosts?: UI_I_SelectHostOptions[]
52
53
  isMainFilter?: boolean
54
+ hostId?: string
53
55
  }>()
54
56
  const emits = defineEmits<{
55
57
  (event: 'submit', value: { name: string; lunDisk: string[] }): void
@@ -45,7 +45,10 @@
45
45
  @remove="onHideAlertInfo"
46
46
  />
47
47
 
48
- <div v-if="props.mode === 'sphere'" class="clr-form-control clr-row">
48
+ <div
49
+ v-if="props.mode === 'sphere' && !props.hostId"
50
+ class="clr-form-control clr-row"
51
+ >
49
52
  <label class="clr-control-label clr-col-12 clr-col-md-2">{{
50
53
  localization.selectHost
51
54
  }}</label>
@@ -125,6 +128,7 @@ const props = defineProps<{
125
128
  datastoreType: UI_T_DatastoreType
126
129
  datacenterHosts?: UI_I_SelectHostOptions[] | undefined
127
130
  isMainFilter?: boolean
131
+ hostId?: string
128
132
  }>()
129
133
  const emits = defineEmits<{
130
134
  (event: 'loading', value: boolean): void
@@ -371,6 +375,9 @@ const initLunDisksForSphere = async (host: string): Promise<void> => {
371
375
  sortBy: sort.value,
372
376
  } as UI_I_LunDiskSpherePayload)
373
377
  }
378
+ if (props.hostId) {
379
+ initLunDisksForSphere(props.hostId)
380
+ }
374
381
  const initLunDisksDataTable = async (): Promise<void> => {
375
382
  await $store.dispatch('storage/A_GET_LUN_DISK_LIST', {
376
383
  ...pagination.value,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.348",
4
+ "version": "1.3.350",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",