Skip to content
Snippets Groups Projects
Commit 5b36687b authored by Phil Hughes's avatar Phil Hughes
Browse files

Added milestone & label filtering

Currently a bug exists with label filtering...
parent fce8ee3e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,8 +5,8 @@
filters: {
author_id: null,
assignee_id: null,
milestone_id: null,
label: []
milestone_title: null,
label_name: []
}
},
reset: function () {
Loading
Loading
Loading
Loading
@@ -300,7 +300,10 @@
page = $('body').data('page');
isIssueIndex = page === 'projects:issues:index';
isMRIndex = page === 'projects:merge_requests:index';
if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) {
if (page === 'projects:boards:show') {
BoardsStore.state.filters['label_name'] = label.title;
return;
} else if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) {
if (!$dropdown.hasClass('js-multiselect')) {
selectedLabel = label.title;
return Issuable.filterResults($dropdown.closest('form'));
Loading
Loading
Loading
Loading
@@ -102,7 +102,9 @@
if ($dropdown.hasClass('js-filter-bulk-update')) {
return;
}
if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) {
if (page === 'projects:boards:show') {
BoardsStore.state.filters[$dropdown.data('field-name')] = selected.name;
} else if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) {
if (selected.name != null) {
selectedMilestone = selected.name;
} else {
Loading
Loading
Loading
Loading
@@ -39,6 +39,7 @@
display: flex;
min-height: 100vh;
max-height: 100vh;
padding-bottom: 0;
}
 
.issue-boards-content {
Loading
Loading
@@ -73,6 +74,7 @@
display: flex;
min-width: 400px;
max-width: 400px;
margin-bottom: 25px;
padding-right: ($gl-padding / 2);
padding-left: ($gl-padding / 2);
}
Loading
Loading
@@ -183,9 +185,10 @@
.board-list {
-webkit-flex: 1;
flex: 1;
margin: 0;
margin-bottom: 0;
padding: 5px;
overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;
}
 
.board-list-loading {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment