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 {
return !this.showEmptyState && this.rearrangePanelsAvailable;
},
addingMetricsAvailable() {
return IS_EE && this.canAddMetrics && !this.showEmptyState;
return (
IS_EE &&
this.canAddMetrics &&
!this.showEmptyState &&
this.firstDashboard === this.selectedDashboard
);
},
hasHeaderButtons() {
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