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:
authorRegis <boudinot.regis@yahoo.com>2016-10-30 10:28:57 +0300
committerRegis <boudinot.regis@yahoo.com>2016-10-30 10:28:57 +0300
commit66727f74b806a978c4bf76a8e9bd4b86c6443651 (patch)
treebb4e2c1f739340a15e9d8839830b7255f81dc916 /app/views/projects/pipelines/index.html.haml
parentdc476fe6ff1c55a992fce8483b9f8a4762e302fa (diff)
change architecture - add store - make api call by default
Diffstat (limited to 'app/views/projects/pipelines/index.html.haml')
-rw-r--r--app/views/projects/pipelines/index.html.haml15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/projects/pipelines/index.html.haml b/app/views/projects/pipelines/index.html.haml
index 30625e399b0..7cb77f2034b 100644
--- a/app/views/projects/pipelines/index.html.haml
+++ b/app/views/projects/pipelines/index.html.haml
@@ -47,17 +47,20 @@
%tbody.app
:javascript
- Vue.component('vue-pipelines', gl.VuePipeLines);
- Vue.component('vue-runner-status', gl.VueRunnerStatus);
+ Vue.use(VueResource);
- new Vue({
+ var vm = new Vue({
el: ".app",
data:{
- pipelines: JSON.parse('#{@pipelines.to_json}'),
- count: JSON.parse('#{@pipeline_count.to_json}'),
+ scope: "#{@project.id}",
+ store: new gl.PipelineStore(),
+ },
+ components: {
+ 'vue-commit-link': gl.VueCommitLink,
+ 'vue-pipelines': gl.VuePipeLines,
},
template: ""
+ "<div>"
- + "<vue-pipelines :pipelines='pipelines' :count='count'></vue-pipelines>"
+ + "<vue-pipelines :scope='scope' :store='store'></vue-pipelines>"
+ "</div>",
})