mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
Merge pull request #110 from a110605/issue_7510
Prevent display lock icon if this.volumes is empty array
This commit is contained in:
commit
5c96e90d58
@ -640,6 +640,10 @@ export default class VirtVm extends HarvesterResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get encryptedVolumeType() {
|
get encryptedVolumeType() {
|
||||||
|
if (!this.volumes || this.volumes.length === 0) {
|
||||||
|
return 'none';
|
||||||
|
}
|
||||||
|
|
||||||
if (this.volumes.every((vol) => vol.isEncrypted)) {
|
if (this.volumes.every((vol) => vol.isEncrypted)) {
|
||||||
return 'all';
|
return 'all';
|
||||||
} else if (this.volumes.some((vol) => vol.isEncrypted)) {
|
} else if (this.volumes.some((vol) => vol.isEncrypted)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user