MCPcopy Create free account
hub / github.com/apache/cloudstack / RefreshFeatures

Function RefreshFeatures

ui/src/store/modules/user.js:556–576  ·  view source on GitHub ↗
({ commit })

Source from the content-addressed store, hash-verified

554 })
555 },
556 RefreshFeatures ({ commit }) {
557 return new Promise((resolve, reject) => {
558 getAPI('listCapabilities').then(response => {
559 const result = response.listcapabilitiesresponse.capability
560 resolve(result)
561 commit('SET_FEATURES', result)
562 }).catch(error => {
563 reject(error)
564 })
565 if ('listConfigurations' in store.getters.apis) {
566 getAPI('listConfigurations', { name: 'hypervisor.custom.display.name' }).then(json => {
567 if (json.listconfigurationsresponse.configuration !== null) {
568 const config = json.listconfigurationsresponse.configuration[0]
569 commit('SET_CUSTOM_HYPERVISOR_NAME', config.value)
570 }
571 }).catch(error => {
572 reject(error)
573 })
574 }
575 })
576 },
577 UpdateConfiguration ({ commit }) {
578 return new Promise((resolve, reject) => {
579 getAPI('listLdapConfigurations').then(response => {

Callers

nothing calls this directly

Calls 3

getAPIFunction · 0.90
rejectFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected