mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
prevent display icon if this.volumes is empty array
Signed-off-by: andy.lee <andy.lee@suse.com> (cherry picked from commit c75755a52710ff78276fc35f46af30a38b73cac8)
This commit is contained in:
parent
adacaf65fa
commit
e7446e7e23
@ -640,6 +640,10 @@ export default class VirtVm extends HarvesterResource {
|
||||
}
|
||||
|
||||
get encryptedVolumeType() {
|
||||
if (!this.volumes || this.volumes.length === 0) {
|
||||
return 'none';
|
||||
}
|
||||
|
||||
if (this.volumes.every((vol) => vol.isEncrypted)) {
|
||||
return 'all';
|
||||
} else if (this.volumes.some((vol) => vol.isEncrypted)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user