mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
refactor: default should selectable
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
72415622d9
commit
64b59a0c27
@ -167,8 +167,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
isBackupVolumeSnapshotClassNameDisabled(driver) {
|
isBackupVolumeSnapshotClassNameDisabled(driver) {
|
||||||
if (this.allowEmptySnapshotClassNameFeatureEnabled) return true;
|
return driver === LONGHORN_DRIVER || this.allowEmptySnapshotClassNameFeatureEnabled;
|
||||||
|
},
|
||||||
|
|
||||||
|
isBackupVolumeSnapshotClassNameSelectable(driver) {
|
||||||
return driver === LONGHORN_DRIVER;
|
return driver === LONGHORN_DRIVER;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -238,9 +240,9 @@ export default {
|
|||||||
:mode="mode"
|
:mode="mode"
|
||||||
required
|
required
|
||||||
:disabled="isBackupVolumeSnapshotClassNameDisabled(driver.key)"
|
:disabled="isBackupVolumeSnapshotClassNameDisabled(driver.key)"
|
||||||
:selectable="!allowEmptySnapshotClassNameFeatureEnabled"
|
|
||||||
:options="getVolumeSnapshotOptions(driver.key)"
|
:options="getVolumeSnapshotOptions(driver.key)"
|
||||||
:label="t('harvester.setting.csiDriverConfig.backupVolumeSnapshotClassName')"
|
:label="t('harvester.setting.csiDriverConfig.backupVolumeSnapshotClassName')"
|
||||||
|
@selectable="isBackupVolumeSnapshotClassNameSelectable(driver.key)"
|
||||||
@keydown.native.enter.prevent="()=>{}"
|
@keydown.native.enter.prevent="()=>{}"
|
||||||
@update:value="update"
|
@update:value="update"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user