Commit 65b12a20 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '211648-remove-add-metric-button-from-custom-dashboard' into 'master'

Remove "Add metric" button from custom dashboards

Closes #211648

See merge request gitlab-org/gitlab!29036
parents 85e08c21 8f239bab
...@@ -227,7 +227,12 @@ export default { ...@@ -227,7 +227,12 @@ export default {
return !this.showEmptyState && this.rearrangePanelsAvailable; return !this.showEmptyState && this.rearrangePanelsAvailable;
}, },
addingMetricsAvailable() { addingMetricsAvailable() {
return IS_EE && this.canAddMetrics && !this.showEmptyState; return (
IS_EE &&
this.canAddMetrics &&
!this.showEmptyState &&
this.firstDashboard === this.selectedDashboard
);
}, },
hasHeaderButtons() { hasHeaderButtons() {
return ( return (
......
---
title: Remove Add Metric button from custom dashboards
merge_request: 29036
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment