mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-02 21:28:47 +08:00
filter golden image volume in hot plug volume modal (#239)
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
1 parent
3dc6dda1ca
commit
78234b9e1e
4 files changed
+10
-4
No files matched your search
@@ -57,6 +57,10 @@ export default {
|
||||
if (!!pvc.metadata?.annotations?.[HCI_ANNOTATIONS.IMAGE_ID]) {
|
||||
return false;
|
||||
}
|
||||
// we won't show golden image volume in the hot plug volume modal
|
||||
if (pvc.isGoldenImageVolume) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !pvc.attachVM;
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user