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 {
685685 })
686686 },
687687 fetchCustomHypervisorName () {
688+ if (! (' listConfigurations' in store .getters .apis )) {
689+ return
690+ }
688691 const params = {
689692 name: ' hypervisor.custom.display.name'
690693 }
@@ -702,6 +705,9 @@ export default {
702705 })
703706 },
704707 fetchExtensionsList () {
708+ if (! this .isAdminRole ) {
709+ return
710+ }
705711 this .loading = true
706712 getAPI (' listExtensions' , {
707713 }).then (response => {
@@ -758,6 +764,9 @@ export default {
758764 name: ' Simulator'
759765 })
760766 }
767+ if (! this .isAdminRole ) {
768+ listhyperVisors = listhyperVisors .filter (hv => hv .name !== ' External' )
769+ }
761770 this .hyperVisor .opts = listhyperVisors
762771 }).finally (() => {
763772 this .hyperVisor .loading = false
You can’t perform that action at this time.
0 commit comments