diff options
author | Regis <boudinot.regis@yahoo.com> | 2016-10-30 01:28:57 -0600 |
---|---|---|
committer | Regis <boudinot.regis@yahoo.com> | 2016-10-30 01:28:57 -0600 |
commit | 66727f74b806a978c4bf76a8e9bd4b86c6443651 (patch) | |
tree | bb4e2c1f739340a15e9d8839830b7255f81dc916 /app/views/projects/pipelines/index.html.haml | |
parent | dc476fe6ff1c55a992fce8483b9f8a4762e302fa (diff) | |
download | gitlab-ce-66727f74b806a978c4bf76a8e9bd4b86c6443651.tar.gz |
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.haml | 15 |
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>", }) |