bfg-common 1.5.184 → 1.5.185

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,6 +5,7 @@
5
5
  show
6
6
  :title="localization.common.selectNetwork"
7
7
  :texts="modalTexts"
8
+ :is-disabled-accept="isDisabledAccept"
8
9
  test-id="select-network-modal"
9
10
  size="sm"
10
11
  width="656px"
@@ -22,7 +23,7 @@
22
23
  <div class="network-select-dialog-content">
23
24
  <common-vm-actions-common-customize-hardware-virtual-hardware-new-network-location-new-table
24
25
  :networks-table="props.networksTable"
25
- @select="emits('select', $event)"
26
+ @select="onSelectNetwork"
26
27
  />
27
28
  </div>
28
29
  <p class="count-text">
@@ -56,6 +57,14 @@ const emits = defineEmits<{
56
57
 
57
58
  const localization = computed<UI_I_Localization>(() => useLocal())
58
59
 
60
+ const isDisabledAccept = ref<boolean>(true)
61
+
62
+ const onSelectNetwork = (value: string): void => {
63
+ emits('select', value)
64
+
65
+ isDisabledAccept.value = !value
66
+ }
67
+
59
68
  const modalTexts = ref<UI_I_ModalTexts>({
60
69
  resetToDefault: '',
61
70
  button1: localization.value.common.cancel,
@@ -2,6 +2,7 @@
2
2
  <ui-data-table
3
3
  :data="data"
4
4
  :options="options"
5
+ :texts="tableTexts"
5
6
  size="sm"
6
7
  test-id="data-table-main"
7
8
  class="network-table"
@@ -25,6 +26,7 @@ import type {
25
26
  UI_I_DataTable,
26
27
  UI_I_DataTableHeader,
27
28
  UI_I_DataTableBody,
29
+ UI_I_TableTexts,
28
30
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
29
31
  import type { UI_I_Localization } from '~/lib/models/interfaces'
30
32
  import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
@@ -33,6 +35,7 @@ import {
33
35
  getHeaderDataFunc,
34
36
  getBodyDataFunc,
35
37
  } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config'
38
+ import { tableTextsFunc } from '~/lib/config/uiTable'
36
39
 
37
40
  const props = defineProps<{
38
41
  networksTable: UI_I_NetworkTableItem[]
@@ -43,6 +46,10 @@ const emits = defineEmits<{
43
46
 
44
47
  const localization = computed<UI_I_Localization>(() => useLocal())
45
48
 
49
+ const tableTexts = computed<UI_I_TableTexts>(() =>
50
+ tableTextsFunc(localization.value)
51
+ )
52
+
46
53
  const data = computed<UI_I_DataTable>(() => ({
47
54
  id: 'new-network-location',
48
55
  header: headItems.value,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.184",
4
+ "version": "1.5.185",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",