From 62707971d585d011f28a47e5e32f19f5c903a665 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 11 Jan 2019 13:12:48 +0000 Subject: [PATCH] Moves shared code into a mixin To reduce code duplication between CE and EE components, creates a mixin with the common methods for the graph component --- .../components/graph/graph_component.vue | 45 ++----------------- .../pipelines/mixins/graph_component_mixin.js | 44 ++++++++++++++++++ app/assets/stylesheets/pages/pipelines.scss | 1 + .../8688-recursive-pipelines-ce-backport.yml | 5 +++ 4 files changed, 53 insertions(+), 42 deletions(-) create mode 100644 app/assets/javascripts/pipelines/mixins/graph_component_mixin.js create mode 100644 changelogs/unreleased/8688-recursive-pipelines-ce-backport.yml diff --git a/app/assets/javascripts/pipelines/components/graph/graph_component.vue b/app/assets/javascripts/pipelines/components/graph/graph_component.vue index 59cebaba717..a49dc311bd0 100644 --- a/app/assets/javascripts/pipelines/components/graph/graph_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/graph_component.vue @@ -1,59 +1,20 @@