Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user I can start registring templates before a zone is created #8145

Open
DaanHoogland opened this issue Oct 25, 2023 · 1 comment · May be fixed by #10243
Open

As a user I can start registring templates before a zone is created #8145

DaanHoogland opened this issue Oct 25, 2023 · 1 comment · May be fixed by #10243

Comments

@DaanHoogland
Copy link
Contributor

ISSUE TYPE
  • Improvement Request
COMPONENT NAME
UI
CLOUDSTACK VERSION

CONFIGURATION

No zone defined (yet/anymore) in a (new) ACS installation

OS / ENVIRONMENT
SUMMARY

Accidently stumbled upon this strange situation.

STEPS TO REPRODUCE

image


EXPECTED RESULTS
a message saying to wait till at least one zone is created or a prefilled "all zones" field and the posibility to choose a hypervisor type
ACTUAL RESULTS
no zones field and no hypervisor choices
@vishesh92
Copy link
Member

@DaanHoogland This should be happening for other forms as well. e.g. Create Volume, Add VPC, etc.
We should be able to add a check like this and hide the create/add button like it's happening for Guest networks as of now.

show: () => {
if (!store.getters.zones || store.getters.zones.length === 0) {
return false
}
const AdvancedZones = store.getters.zones.filter(zone => zone.networktype === 'Advanced')
const AdvancedZonesWithoutSG = store.getters.zones.filter(zone => zone.securitygroupsenabled === false)
if ((isAdmin() && AdvancedZones && AdvancedZones.length > 0) || (AdvancedZonesWithoutSG && AdvancedZonesWithoutSG.length > 0)) {
return true
}
return false
},
component: shallowRef(defineAsyncComponent(() => import('@/views/network/CreateNetwork.vue')))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment