Merge branch 'fix-pipelines-pagination-is-gone' into 'master'
Renders pagination again for pipelines table Closes #28299 See merge request !9315
This commit is contained in:
commit
b632bdddee
2 changed files with 5 additions and 2 deletions
|
@ -50,10 +50,13 @@ const CommitPipelinesStoreWithTimeAgo = require('../commit/pipelines/pipelines_s
|
|||
*
|
||||
* If no scope is provided, 'all' is assumed.
|
||||
*
|
||||
* Pagination component sends "null" when no scope is provided.
|
||||
*
|
||||
* @param {Number} pagenum
|
||||
* @param {String} apiScope = 'all'
|
||||
*/
|
||||
change(pagenum, apiScope = 'all') {
|
||||
change(pagenum, apiScope) {
|
||||
if (!apiScope) apiScope = 'all';
|
||||
gl.utils.visitUrl(`?scope=${apiScope}&p=${pagenum}`);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
((gl) => {
|
||||
const pageValues = (headers) => {
|
||||
const normalized = gl.utils.normalizeHeaders(headers);
|
||||
const paginationInfo = gl.utils.normalizeHeaders(normalized);
|
||||
const paginationInfo = gl.utils.parseIntPagination(normalized);
|
||||
return paginationInfo;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue