From 69009fa145fbf9f03360886c1c4b00215d74bccb Mon Sep 17 00:00:00 2001 From: Laura Montemayor Date: Fri, 16 Aug 2019 21:02:43 +0000 Subject: Adds specific metric styles and prop This MR adds the styles for displaying a single chart next to another one when embedding them in an issue. --- .../monitoring/components/charts/area.vue | 10 +++++++- .../javascripts/monitoring/components/embed.vue | 28 ++++++++++++---------- ...62971-embed-specific-metrics-chart-in-issue.yml | 5 ++++ 3 files changed, 29 insertions(+), 14 deletions(-) create mode 100644 changelogs/unreleased/62971-embed-specific-metrics-chart-in-issue.yml diff --git a/app/assets/javascripts/monitoring/components/charts/area.vue b/app/assets/javascripts/monitoring/components/charts/area.vue index 838447e6c75..90c764587a3 100644 --- a/app/assets/javascripts/monitoring/components/charts/area.vue +++ b/app/assets/javascripts/monitoring/components/charts/area.vue @@ -45,6 +45,11 @@ export default { required: false, default: () => false, }, + singleEmbed: { + type: Boolean, + required: false, + default: false, + }, thresholds: { type: Array, required: false, @@ -240,7 +245,10 @@ export default {