This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new c4b444d0322 UI: fix error message when create load balancer as a 
normal user (#7286)
c4b444d0322 is described below

commit c4b444d0322616cf1b6b36fd59989077d82a0d0d
Author: Wei Zhou <[email protected]>
AuthorDate: Fri Feb 24 12:06:12 2023 +0100

    UI: fix error message when create load balancer as a normal user (#7286)
---
 ui/src/views/network/LoadBalancing.vue | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/src/views/network/LoadBalancing.vue 
b/ui/src/views/network/LoadBalancing.vue
index 11933650bc1..90ed4c0aafa 100644
--- a/ui/src/views/network/LoadBalancing.vue
+++ b/ui/src/views/network/LoadBalancing.vue
@@ -1598,6 +1598,9 @@ export default {
       this.fetchVirtualMachines()
     },
     fetchLBTungstenFabricHealthMonitor () {
+      if (!('listTungstenFabricLBHealthMonitor' in this.$store.getters.apis)) {
+        return
+      }
       this.tungstenHealthMonitors = []
       this.loading = true
       this.lbRules.forEach(rule => {

Reply via email to