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
fce8ee3e
Commit
fce8ee3e
authored
Aug 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can filter by author & assignee
parent
d06e20b2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+7
-0
new_list_dropdown.js.es6
...ts/javascripts/boards/components/new_list_dropdown.js.es6
+4
-2
boards_store.js.es6
app/assets/javascripts/boards/stores/boards_store.js.es6
+3
-3
users_select.js
app/assets/javascripts/users_select.js
+3
-1
No files found.
app/assets/javascripts/boards/components/board.js.es6
View file @
fce8ee3e
...
...
@@ -14,6 +14,13 @@
this.board.filters = this.getFilterData();
this.board.getIssues(true);
}
},
'filters': {
handler: function () {
this.board.filters = this.getFilterData();
this.board.getIssues(true);
},
deep: true
}
},
methods: {
...
...
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
View file @
fce8ee3e
...
...
@@ -11,8 +11,10 @@ $(() => {
});
},
renderRow: (label) => {
if (BoardsStore.findList('title', label.title)) return;
const $li = $('<li />'),
const isHidden = BoardsStore.findList('title', label.title),
$li = $('<li />', {
class: (isHidden ? 'hidden' : '')
}),
$a = $('<a />', {
text: label.title,
href: '#'
...
...
app/assets/javascripts/boards/stores/boards_store.js.es6
View file @
fce8ee3e
...
...
@@ -3,9 +3,9 @@
state: {
lists: [],
filters: {
author
: {}
,
assignee
: {}
,
milestone
: {}
,
author
_id: null
,
assignee
_id: null
,
milestone
_id: null
,
label: []
}
},
...
...
app/assets/javascripts/users_select.js
View file @
fce8ee3e
...
...
@@ -149,7 +149,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'
)]
=
user
.
id
;
}
else
if
(
$dropdown
.
hasClass
(
'js-filter-submit'
)
&&
(
isIssueIndex
||
isMRIndex
))
{
selectedId
=
user
.
id
;
return
Issuable
.
filterResults
(
$dropdown
.
closest
(
'form'
));
}
else
if
(
$dropdown
.
hasClass
(
'js-filter-submit'
))
{
...
...
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