bfg-common 1.3.203 → 1.3.204

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.
@@ -204,6 +204,7 @@
204
204
  :selected-standard-switch-id="selectedStandardSwitchId"
205
205
  :selected-switch-id="selectedSwitchId"
206
206
  :tcp-stacks="props.tcpStacks"
207
+ :tcp-stack-loading="props.tcpStackLoading"
207
208
  @check-network-label="onCheckNetworkLabel"
208
209
  @get-existing-standard-switches="onGetExistingStandardSwitches"
209
210
  @get-tcp-stacks="onGetTcpStacks"
@@ -298,6 +299,7 @@ const props = withDefaults(
298
299
  networksList?: UI_I_Network[]
299
300
  isDarkMode: boolean
300
301
  tcpStacks?: UI_I_TCPStack[]
302
+ tcpStackLoading?: boolean
301
303
  }>(),
302
304
  {
303
305
  diagramData: null,
@@ -312,6 +314,7 @@ const props = withDefaults(
312
314
  freeAdapters: () => [],
313
315
  networksList: () => [],
314
316
  tcpStacks: () => [],
317
+ tcpStackLoading: false,
315
318
  }
316
319
  )
317
320
 
@@ -573,8 +576,8 @@ const onCheckNetworkLabel = (
573
576
  const onGetExistingStandardSwitches = (cb: () => void) => {
574
577
  emits('get-existing-standard-switches', cb)
575
578
  }
576
- const onGetTcpStacks = (cb: () => void) => {
577
- emits('get-tcp-stacks', cb)
579
+ const onGetTcpStacks = () => {
580
+ emits('get-tcp-stacks')
578
581
  }
579
582
  const onGetFreeAdapters = (cb: () => void) => {
580
583
  emits('get-free-adapters', cb)
@@ -903,7 +906,7 @@ const emits = defineEmits<{
903
906
  hideModalCB: () => void,
904
907
  hideLoaderCB: () => void
905
908
  ): void
906
- (event: 'get-tcp-stacks', cb: () => void): void
909
+ (event: 'get-tcp-stacks'): void
907
910
  }>()
908
911
 
909
912
  const onTogglePorts = (
@@ -170,6 +170,7 @@ const props = withDefaults(
170
170
  selectedStandardSwitchId?: string
171
171
  selectedSwitchId?: string
172
172
  tcpStacks?: UI_I_TCPStack[]
173
+ tcpStackLoading?: boolean
173
174
  }>(),
174
175
  {
175
176
  standardSwitchesInitial: () => [],
@@ -179,6 +180,7 @@ const props = withDefaults(
179
180
  selectedStandardSwitchId: '',
180
181
  selectedSwitchId: '',
181
182
  tcpStacks: () => [],
183
+ tcpStackLoading: false,
182
184
  }
183
185
  )
184
186
 
@@ -346,10 +348,16 @@ const onGetExistingStandardSwitches = (): void => {
346
348
  }
347
349
 
348
350
  const onGetTcpStacks = (): void => {
349
- wizard.setLoader(true)
350
- emits('get-tcp-stacks', () => wizard.setLoader(false))
351
+ emits('get-tcp-stacks')
351
352
  }
352
353
 
354
+ watch(
355
+ () => props.tcpStackLoading,
356
+ (newValue: boolean) => {
357
+ wizard.setLoader(newValue)
358
+ }
359
+ )
360
+
353
361
  watch(
354
362
  () => wizard.selectedStepId,
355
363
  (newSelectedStep: number) => {
@@ -202,7 +202,7 @@ export interface UI_I_AddNetworkingEmits {
202
202
  networkLabel: string,
203
203
  cb: (error_message: string) => void
204
204
  ): void
205
- (event: 'get-tcp-stacks', cb: () => void): void
205
+ (event: 'get-tcp-stacks'): void
206
206
  }
207
207
 
208
208
  export interface UI_I_TCPStack {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.203",
4
+ "version": "1.3.204",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",