Commit 8f239bab authored by Andrei Stoicescu's avatar Andrei Stoicescu

Remove "Add metric" button from custom dashboards

parent 5cb12ceb
...@@ -229,7 +229,12 @@ export default { ...@@ -229,7 +229,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