diff options
Diffstat (limited to 'app/assets/javascripts/monitoring/components/dashboard.vue')
-rw-r--r-- | app/assets/javascripts/monitoring/components/dashboard.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue index f20674699f7..e2e950f7790 100644 --- a/app/assets/javascripts/monitoring/components/dashboard.vue +++ b/app/assets/javascripts/monitoring/components/dashboard.vue @@ -259,8 +259,17 @@ export default { ); } }, + expandedPanel: { + handler({ group, panel }) { + const dashboardPath = this.currentDashboard || this.firstDashboard.path; + updateHistory({ + url: panelToUrl(dashboardPath, group, panel), + title: document.title, + }); + }, + deep: true, + }, }, - created() { this.setInitialState({ metricsEndpoint: this.metricsEndpoint, |