bfg-common 1.2.169 → 1.2.170

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.
@@ -73,6 +73,7 @@ const props = defineProps<{
73
73
  componentType: string
74
74
  errorValidationFields: UI_I_ErrorValidationField<string>[]
75
75
  disabled?: boolean
76
+ shortOptions?: boolean
76
77
  }>()
77
78
  const emits = defineEmits<{
78
79
  (event: 'update:bus', value: string): void
@@ -81,7 +82,7 @@ const emits = defineEmits<{
81
82
 
82
83
  const helpId = ref<string>(`bus-field-help-icon${useUniqueId()}`)
83
84
 
84
- const busOptions = ref<UI_I_OptionItem[]>(busOptionsFunc(localization.value))
85
+ const busOptions = ref<UI_I_OptionItem[]>(busOptionsFunc(localization.value, props.shortOptions))
85
86
 
86
87
  const busLocal = computed<string>({
87
88
  get() {
@@ -2,8 +2,15 @@ import { UI_I_Localization } from '~/models/interfaces'
2
2
  import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
3
3
 
4
4
  export const busOptionsFunc = (
5
- localization: UI_I_Localization
5
+ localization: UI_I_Localization,
6
+ shortOptions?: boolean
6
7
  ): UI_I_OptionItem[] => {
8
+ if (shortOptions) {
9
+ return [
10
+ { text: localization.ide, value: 'ide' },
11
+ { text: localization.sata, value: 'sata' },
12
+ ]
13
+ }
7
14
  return [
8
15
  { text: localization.ide, value: 'ide' },
9
16
  { text: localization.scsi, value: 'scsi' },
@@ -71,6 +71,7 @@
71
71
  :validation-type="busValidationType"
72
72
  :error-validation-fields="props.errorValidationFields"
73
73
  :disabled="isRunning"
74
+ :short-options="props.type === 'edit'"
74
75
  component-type="disk_devices"
75
76
  @remove-error-by-title="emits('remove-error-by-title', $event)"
76
77
  />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.2.169",
4
+ "version": "1.2.170",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",