bfg-common 1.6.60 → 1.6.62
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.
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/New.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/Old.vue +6 -3
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:is-removable="isRemovable"
|
|
15
15
|
:label="label"
|
|
16
16
|
:disabled="props.disabled"
|
|
17
|
+
:is-disabled-remove-file="isDisabledRemoveFile"
|
|
17
18
|
:cd-dvd-drive-options="cdDvdDriveOptions"
|
|
18
19
|
:index-by-hard-disks="indexByHardDisks"
|
|
19
20
|
:bus-validation-type="busValidationType"
|
|
@@ -115,6 +116,9 @@ const isRemovable = computed<boolean>(() => {
|
|
|
115
116
|
(isRunning.value && bus.value === 'virtio')
|
|
116
117
|
)
|
|
117
118
|
})
|
|
119
|
+
const isDisabledRemoveFile = computed<boolean>(
|
|
120
|
+
() => !source.value || props.disabled
|
|
121
|
+
)
|
|
118
122
|
|
|
119
123
|
const indexByHardDisks = computed<number>(
|
|
120
124
|
() => props.index + props.hardDisksCount
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/New.vue
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
:id="`cd-dvd-delete-files-from-datastore-${props.index}`"
|
|
47
47
|
v-model="deleteFilesFromDatastore"
|
|
48
48
|
:test-id="`cd-dvd-delete-files-from-datastore-${props.index}`"
|
|
49
|
-
:disabled="props.
|
|
49
|
+
:disabled="props.isDisabledRemoveFile"
|
|
50
50
|
:label-text="localization.common.deleteFilesFromDatastore"
|
|
51
51
|
size="md"
|
|
52
52
|
/>
|
|
@@ -141,6 +141,7 @@ const props = withDefaults(
|
|
|
141
141
|
isRemovable: boolean
|
|
142
142
|
label: string
|
|
143
143
|
disabled: boolean
|
|
144
|
+
isDisabledRemoveFile: boolean
|
|
144
145
|
cdDvdDriveOptions: UI_I_OptionItem[]
|
|
145
146
|
indexByHardDisks: number
|
|
146
147
|
busValidationType: string
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/Old.vue
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
:id="`cd-dvd-delete-files-from-datastore-${props.index}`"
|
|
27
27
|
v-model="deleteFilesFromDatastore"
|
|
28
28
|
:data-id="`cd-dvd-delete-files-from-datastore-${props.index}`"
|
|
29
|
-
:disabled="props.
|
|
29
|
+
:disabled="props.isDisabledRemoveFile"
|
|
30
30
|
type="checkbox"
|
|
31
31
|
class="cursor-pointer"
|
|
32
32
|
@click.stop
|
|
@@ -34,8 +34,10 @@
|
|
|
34
34
|
<label
|
|
35
35
|
:for="`cd-dvd-delete-files-from-datastore-${props.index}`"
|
|
36
36
|
:class="[
|
|
37
|
-
'label-text-normal
|
|
38
|
-
props.
|
|
37
|
+
'label-text-normal',
|
|
38
|
+
props.isDisabledRemoveFile
|
|
39
|
+
? 'div-disabled'
|
|
40
|
+
: 'cursor-pointer',
|
|
39
41
|
]"
|
|
40
42
|
>{{ localization.common.deleteFilesFromDatastore }}</label
|
|
41
43
|
>
|
|
@@ -142,6 +144,7 @@ const props = withDefaults(
|
|
|
142
144
|
isRemovable: boolean
|
|
143
145
|
label: string
|
|
144
146
|
disabled: boolean
|
|
147
|
+
isDisabledRemoveFile: boolean
|
|
145
148
|
cdDvdDriveOptions: UI_I_OptionItem[]
|
|
146
149
|
indexByHardDisks: number
|
|
147
150
|
busValidationType: string
|