| 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 => { |