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
893402d4
Commit
893402d4
authored
Oct 13, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve `archived` param only when sort order is changed
parent
4d791599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
groups_filterable_list.js
app/assets/javascripts/groups/groups_filterable_list.js
+3
-3
No files found.
app/assets/javascripts/groups/groups_filterable_list.js
View file @
893402d4
...
...
@@ -64,11 +64,11 @@ export default class GroupFilterableList extends FilterableList {
// Get type of option selected from dropdown
const
currentTargetClassList
=
e
.
currentTarget
.
parentElement
.
classList
;
const
isOptionFilterBySort
=
currentTargetClassList
.
contains
(
'js-filter-sort-order'
);
const
isOptionFilterByArchivedProjects
=
currentTargetClassList
.
contains
(
'js-filter-archived-projects'
);
// Get option query param, also preserve currently applied query param
const
isOptionFilterByArchivedProjects
=
currentTargetClassList
.
contains
(
'js-filter-archived-projects'
);
const
sortParam
=
getParameterByName
(
'sort'
,
e
.
currentTarget
.
href
)
||
getParameterByName
(
'sort'
,
window
.
location
.
href
);
const
archivedParam
=
getParameterByName
(
'archived'
,
e
.
currentTarget
.
href
)
||
getParameterByName
(
'archived'
,
window
.
location
.
href
);
const
sortParam
=
getParameterByName
(
'sort'
,
isOptionFilterBySort
?
e
.
currentTarget
.
href
:
window
.
location
.
href
);
const
archivedParam
=
getParameterByName
(
'archived'
,
isOptionFilterByArchivedProjects
?
e
.
currentTarget
.
href
:
window
.
location
.
href
);
if
(
sortParam
)
{
queryData
.
sort
=
sortParam
;
...
...
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