mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-06 06:06:05 +08:00
Implement volumeEncryption feature flag
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -127,14 +127,23 @@ export default {
|
||||
showEditAsYaml() {
|
||||
return this.value.spec.sourceType === DOWNLOAD || this.value.spec.sourceType === CLONE;
|
||||
},
|
||||
|
||||
radioGroupOptions() {
|
||||
if (this.value.volumeEncryptionFeatureEnabled) {
|
||||
return [
|
||||
DOWNLOAD,
|
||||
UPLOAD,
|
||||
ENCRYPT,
|
||||
DECRYPT
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
DOWNLOAD,
|
||||
UPLOAD,
|
||||
ENCRYPT,
|
||||
DECRYPT
|
||||
UPLOAD
|
||||
];
|
||||
},
|
||||
|
||||
storageClassOptions() {
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
const storages = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS);
|
||||
|
||||
Reference in New Issue
Block a user