From 8929010fc340dbc4d5622a95566bb20c99055b5b Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Mon, 9 Apr 2018 15:04:56 +0900 Subject: [PATCH] Reproduce navigations Details view does not reproduce side menu and breadcrumb properly by refreshing or linking directory. This patch fixes this issue. Change-Id: I43f673467893f82c6a8ab461488762a28c001399 Closes-Bug: #1746706 --- senlin_dashboard/static/app/core/clusters/clusters.module.js | 1 + senlin_dashboard/static/app/core/nodes/nodes.module.js | 1 + senlin_dashboard/static/app/core/policies/policies.module.js | 1 + senlin_dashboard/static/app/core/profiles/profiles.module.js | 1 + senlin_dashboard/static/app/core/receivers/receivers.module.js | 1 + 5 files changed, 5 insertions(+) diff --git a/senlin_dashboard/static/app/core/clusters/clusters.module.js b/senlin_dashboard/static/app/core/clusters/clusters.module.js index 27c292c1..7477bd88 100644 --- a/senlin_dashboard/static/app/core/clusters/clusters.module.js +++ b/senlin_dashboard/static/app/core/clusters/clusters.module.js @@ -58,6 +58,7 @@ registry.getResourceType(clusterResourceType) .setNames(gettext('Cluster'), gettext('Clusters')) .setSummaryTemplateUrl(basePath + 'details/drawer.html') + .setDefaultIndexUrl('/cluster/') .setProperties(clusterProperties(statuses)) .setListFunction(clusterService.getClustersPromise) .tableColumns diff --git a/senlin_dashboard/static/app/core/nodes/nodes.module.js b/senlin_dashboard/static/app/core/nodes/nodes.module.js index 9c13dd9f..06624ed1 100644 --- a/senlin_dashboard/static/app/core/nodes/nodes.module.js +++ b/senlin_dashboard/static/app/core/nodes/nodes.module.js @@ -56,6 +56,7 @@ registry.getResourceType(nodeResourceType) .setNames(gettext('Node'), gettext('Nodes')) .setSummaryTemplateUrl(basePath + 'details/drawer.html') + .setDefaultIndexUrl('/cluster/nodes/') .setProperties(nodeProperties(statuses)) .setListFunction(nodeService.getNodesPromise) .tableColumns diff --git a/senlin_dashboard/static/app/core/policies/policies.module.js b/senlin_dashboard/static/app/core/policies/policies.module.js index 6275fc62..c89c5624 100644 --- a/senlin_dashboard/static/app/core/policies/policies.module.js +++ b/senlin_dashboard/static/app/core/policies/policies.module.js @@ -44,6 +44,7 @@ registry.getResourceType(policyResourceType) .setNames(gettext('Policy'), gettext('Policies')) .setSummaryTemplateUrl(basePath + 'details/drawer.html') + .setDefaultIndexUrl('/cluster/policies/') .setProperties(policyProperties()) .setListFunction(policyService.getPoliciesPromise) .tableColumns diff --git a/senlin_dashboard/static/app/core/profiles/profiles.module.js b/senlin_dashboard/static/app/core/profiles/profiles.module.js index fd3adf98..829d0f99 100644 --- a/senlin_dashboard/static/app/core/profiles/profiles.module.js +++ b/senlin_dashboard/static/app/core/profiles/profiles.module.js @@ -45,6 +45,7 @@ registry.getResourceType(profileResourceType) .setNames(gettext('Profile'), gettext('Profiles')) .setSummaryTemplateUrl(basePath + 'details/drawer.html') + .setDefaultIndexUrl('/cluster/profiles/') .setProperties(profileProperties()) .setListFunction(profileService.getProfilesPromise) .tableColumns diff --git a/senlin_dashboard/static/app/core/receivers/receivers.module.js b/senlin_dashboard/static/app/core/receivers/receivers.module.js index 51c80a85..a7800523 100644 --- a/senlin_dashboard/static/app/core/receivers/receivers.module.js +++ b/senlin_dashboard/static/app/core/receivers/receivers.module.js @@ -44,6 +44,7 @@ registry.getResourceType(receiverResourceType) .setNames(gettext('Receiver'), gettext('Receivers')) .setSummaryTemplateUrl(basePath + 'details/drawer.html') + .setDefaultIndexUrl('/cluster/receivers/') .setProperties(receiverProperties()) .setListFunction(receiverService.getReceiversPromise) .tableColumns