Fixed filter by any label

This commit is contained in:
Phil Hughes 2016-08-08 09:24:29 +01:00
parent aaf176f2c1
commit df7ebcba6e
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,6 @@
if (persist) {
list.save();
this.removeBlankState();
this.updateNewListDropdown();
}
return list;

View file

@ -304,7 +304,9 @@
isIssueIndex = page === 'projects:issues:index';
isMRIndex = page === 'projects:merge_requests:index';
if (page === 'projects:boards:show') {
if (label.title) {
if (label.isAny) {
BoardsStore.state.filters['label_name'] = [];
} else if (label.title) {
BoardsStore.state.filters['label_name'].push(label.title);
} else {
var labelIndex = BoardsStore.state.filters['label_name'].indexOf(label.text());