File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -685,6 +685,9 @@ export default {
685
685
})
686
686
},
687
687
fetchCustomHypervisorName () {
688
+ if (! (' listConfigurations' in store .getters .apis )) {
689
+ return
690
+ }
688
691
const params = {
689
692
name: ' hypervisor.custom.display.name'
690
693
}
@@ -702,6 +705,9 @@ export default {
702
705
})
703
706
},
704
707
fetchExtensionsList () {
708
+ if (! this .isAdminRole ) {
709
+ return
710
+ }
705
711
this .loading = true
706
712
getAPI (' listExtensions' , {
707
713
}).then (response => {
@@ -758,6 +764,9 @@ export default {
758
764
name: ' Simulator'
759
765
})
760
766
}
767
+ if (! this .isAdminRole ) {
768
+ listhyperVisors = listhyperVisors .filter (hv => hv .name !== ' External' )
769
+ }
761
770
this .hyperVisor .opts = listhyperVisors
762
771
}).finally (() => {
763
772
this .hyperVisor .loading = false
You can’t perform that action at this time.
0 commit comments