You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by nv...@apache.org on 2022/04/25 12:07:30 UTC
[cloudstack] branch main updated: Fixes InfraMammary screen not display when at least one section doesn't meet the display condition (#6312)
This is an automated email from the ASF dual-hosted git repository.
nvazquez 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 6471f8418a Fixes InfraMammary screen not display when at least one section doesn't meet the display condition (#6312)
6471f8418a is described below
commit 6471f8418a32e087c73409c3b6afc8993cab793e
Author: Hoang Nguyen <ho...@unitech.vn>
AuthorDate: Mon Apr 25 19:07:22 2022 +0700
Fixes InfraMammary screen not display when at least one section doesn't meet the display condition (#6312)
---
ui/src/views/infra/InfraSummary.vue | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/src/views/infra/InfraSummary.vue b/ui/src/views/infra/InfraSummary.vue
index 33cd7a41b9..941d15b440 100644
--- a/ui/src/views/infra/InfraSummary.vue
+++ b/ui/src/views/infra/InfraSummary.vue
@@ -214,6 +214,9 @@ export default {
fetchData () {
this.routes = {}
for (const section of this.sections) {
+ if (router.resolve('/' + section.substring(0, section.length - 1)).matched[0].redirect === '/exception/404') {
+ continue
+ }
const node = router.resolve({ name: section.substring(0, section.length - 1) })
this.routes[section] = {
title: node.meta.title,