Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-05-26 13:56:54 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-05-26 13:57:40 +0300
commitcad686cc30309532ebf9a81ad37a60a98c84577c (patch)
tree13841b1347c190a46ab70f9a4ccaef20fe7a728b /app/assets/javascripts/pipelines/stores
parent8e2fefc6c44fc3c6140e5cbc4b56c58c90dc07f3 (diff)
Creates a mediator for pipeline details vue in order to mount several vue apps with the same data
Diffstat (limited to 'app/assets/javascripts/pipelines/stores')
-rw-r--r--app/assets/javascripts/pipelines/stores/pipeline_store.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/pipelines/stores/pipeline_store.js b/app/assets/javascripts/pipelines/stores/pipeline_store.js
index 86ab50d8f1e..052e34a8aef 100644
--- a/app/assets/javascripts/pipelines/stores/pipeline_store.js
+++ b/app/assets/javascripts/pipelines/stores/pipeline_store.js
@@ -2,10 +2,10 @@ export default class PipelineStore {
constructor() {
this.state = {};
- this.state.graph = [];
+ this.state.pipeline = {};
}
- storeGraph(graph = []) {
- this.state.graph = graph;
+ storePipeline(pipeline = {}) {
+ this.state.pipeline = pipeline;
}
}