提交 f2e64fdd 编写于 作者: R Regis

attemp

上级 6f6119b7
......@@ -23,7 +23,7 @@
return new Vue({
el: '.vue-pipelines-index',
data: {
scope: project.dataset.projectId,
scope: project.dataset.url,
count: project.dataset.count,
store: new gl.PipelineStore(),
},
......
......@@ -8,8 +8,10 @@
gl.PipelineStore = class {
fetchDataLoop(Vue, pageNum) {
const goFetch = () =>
this.$http.get(`${api}/${this.scope}/pipelines${paginate}${pageNum}`)
// const url = `${api}/${this.scope}/pipelines${paginate}${pageNum}`
this.$http.get('/gitlab-org/gitlab-shell/pipelines.json?page=1')
.then((response) => {
debugger
Vue.set(this, 'pipelines', JSON.parse(response.body));
}, () => new Flash(
'Something went wrong on our end.'
......
......@@ -35,8 +35,7 @@
= link_to ci_lint_path, class: 'btn btn-default' do
%span CI Lint
%div.content-list.pipelines{"data-project-id": "#{@project.id}", "data-count": "#{@pipelines_count}"}
%div.content-list.pipelines{data: {url: namespace_project_pipelines_path(@project.namespace, @project, format: :json), "data-count": "#{@pipelines_count}"}}
- if @pipelines.blank?
%div
.nothing-here-block No pipelines to show
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册