BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
386f9586
Unverified
Commit
386f9586
authored
Mar 30, 2017
by
Filipa Lacerda
Committed by
Kamil Trzcinski
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes after review
parent
7c1bb6c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
pipelines_table.js
app/assets/javascripts/commit/pipelines/pipelines_table.js
+1
-1
pipelines.js
app/assets/javascripts/vue_pipelines_index/pipelines.js
+10
-8
No files found.
app/assets/javascripts/commit/pipelines/pipelines_table.js
View file @
386f9586
...
...
@@ -44,7 +44,7 @@ export default Vue.component('pipelines-table', {
state
:
store
.
state
,
isLoading
:
false
,
hasError
:
false
,
setI
sMakingRequest
:
false
,
i
sMakingRequest
:
false
,
};
},
...
...
app/assets/javascripts/vue_pipelines_index/pipelines.js
View file @
386f9586
...
...
@@ -123,18 +123,23 @@ export default {
tagsPath
:
this
.
tagsPath
,
};
},
pageParameter
()
{
return
gl
.
utils
.
getParameterByName
(
'page'
)
||
this
.
pagenum
;
},
scopeParameter
()
{
return
gl
.
utils
.
getParameterByName
(
'scope'
)
||
this
.
apiScope
;
},
},
created
()
{
const
pageNumber
=
gl
.
utils
.
getParameterByName
(
'page'
)
||
this
.
pagenum
;
const
scope
=
gl
.
utils
.
getParameterByName
(
'scope'
)
||
this
.
apiScope
;
this
.
service
=
new
PipelinesService
(
this
.
endpoint
);
const
poll
=
new
Poll
({
resource
:
this
.
service
,
method
:
'getPipelines'
,
data
:
{
page
:
pageNumber
,
scope
},
data
:
{
page
:
this
.
pageParameter
,
scope
:
this
.
scopeParameter
},
successCallback
:
this
.
successCallback
,
errorCallback
:
this
.
errorCallback
,
notificationCallback
:
this
.
setIsMakingRequest
,
...
...
@@ -183,13 +188,10 @@ export default {
},
fetchPipelines
()
{
const
pageNumber
=
gl
.
utils
.
getParameterByName
(
'page'
)
||
this
.
pagenum
;
const
scope
=
gl
.
utils
.
getParameterByName
(
'scope'
)
||
this
.
apiScope
;
if
(
!
this
.
isMakingRequest
)
{
this
.
isLoading
=
true
;
this
.
service
.
getPipelines
({
scope
,
page
:
pageNumb
er
})
this
.
service
.
getPipelines
({
scope
:
this
.
scopeParameter
,
page
:
this
.
pageParamet
er
})
.
then
(
response
=>
this
.
successCallback
(
response
))
.
catch
(()
=>
this
.
errorCallback
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment