Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
提交
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions ui/src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,24 @@ const user = {
})
})
},
RefreshZones ({ commit }) {
return new Promise((resolve, reject) => {
api('listZones').then(json => {
const zones = json.listzonesresponse.zone || []
commit('SET_ZONES', zones)
resolve(zones)
}).catch(error => {
reject(error)
})
api(
'list网络ServiceProviders',
{ name: '安全GroupProvider', state: 'Enabled' }
).then(response => {
const show安全Groups = response.listnetworkserviceprovidersresponse.count > 0
commit('SET_SHOW_SECURITY_GROUPS', show安全Groups)
}).catch(ignored => {})
})
},
RefreshFeatures ({ commit }) {
return new Promise((resolve, reject) => {
api('listCapabilities').then(response => {
Expand Down
1 change: 1 addition & 0 deletions ui/src/views/infra/zone/ZoneWizardLaunchZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,7 @@ export default {

try {
await this.enableZone(params)
await this.$store.dispatch('RefreshZones').catch(() => {})
await this.$message.success('Success')
this.loading = false
this.steps = []
Expand Down
Loading