bfg-common 1.3.147 → 1.3.149

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.
@@ -2,7 +2,7 @@
2
2
  <div v-if="props.show" class="modal clr-wizard wizard-xl">
3
3
  <div
4
4
  class="modal-dialog modal-xl relative"
5
- :style="{ height: props.height }"
5
+ :style="{ 'max-height': props.maxHeight }"
6
6
  >
7
7
  <div class="modal-content-wrapper">
8
8
  <nav class="modal-nav clr-wizard-stepnav-wrapper">
@@ -117,7 +117,7 @@ const props = withDefaults(
117
117
  localization?: UI_I_Localization
118
118
  testId?: string
119
119
  wasCompleted: boolean
120
- height?: string
120
+ maxHeight?: string
121
121
  }>(),
122
122
  {
123
123
  isLoading: false,
@@ -126,7 +126,7 @@ const props = withDefaults(
126
126
  isDisabledFinish: false,
127
127
  localization: () => ({}),
128
128
  testId: '',
129
- height: '',
129
+ maxHeight: '',
130
130
  }
131
131
  )
132
132
 
@@ -6,7 +6,7 @@
6
6
  :is-loading="wizard.wizardLoader.status"
7
7
  :loader-messages="wizard.wizardLoader.messages"
8
8
  :title="title"
9
- height="551px"
9
+ max-height="551px"
10
10
  :was-completed="wasCompleted"
11
11
  :localization="localization"
12
12
  :class="[
@@ -197,8 +197,8 @@ const connectionTypeLocal = computed<string>({
197
197
  set(newValue: string) {
198
198
  wizard.resetAfterSelected()
199
199
  connectionType.value = newValue
200
- targetDevice.value.standardSwitch =
201
- props.standardSwitchesInitial?.[0]?.name || ''
200
+ if (!targetDevice.value.standardSwitch)
201
+ targetDevice.value.standardSwitch = props.selectedSwitchId
202
202
  },
203
203
  })
204
204
 
@@ -281,7 +281,9 @@ watch(
281
281
  const newTD = newValues[1] // -> newTargetDevice
282
282
 
283
283
  if (newCT !== oldCT) {
284
- newCT === '0' && (targetDevice.value.selected = '1')
284
+ newCT === '0' && props.selectedSwitchId
285
+ ? (targetDevice.value.selected = '1')
286
+ : (targetDevice.value.selected = '0')
285
287
  newCT === '1' && (targetDevice.value.selected = '1')
286
288
  newCT === '2' && (targetDevice.value.selected = '2')
287
289
  }
@@ -310,12 +312,7 @@ const onGetExistingStandardSwitches = (): void => {
310
312
  watch(
311
313
  () => wizard.selectedStepId,
312
314
  (newSelectedStep: number) => {
313
- if (
314
- newSelectedStep === 1 &&
315
- targetDevice.value.selected === '1' &&
316
- !targetDevice.value.standardSwitch
317
- )
318
- onGetExistingStandardSwitches()
315
+ if (newSelectedStep === 1) onGetExistingStandardSwitches()
319
316
 
320
317
  if (newSelectedStep !== 7) return // If last step
321
318
  if (wizard.isSelectedScheme(0)) {
@@ -128,9 +128,13 @@ const onHideModal = (): void => {
128
128
 
129
129
  <style scoped lang="scss">
130
130
  .network-select-dialog-content {
131
- min-height: 300px;
131
+ min-height: 264px;
132
132
  margin-top: 10px;
133
133
 
134
+ .table-wrap {
135
+ height: 272px;
136
+ }
137
+
134
138
  .pull-right {
135
139
  display: flex;
136
140
  justify-content: flex-end;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.147",
4
+ "version": "1.3.149",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",