Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
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
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+7
-0
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
...ts/javascripts/boards/components/new_list_dropdown.js.es6
+4
-2
app/assets/javascripts/boards/stores/boards_store.js.es6
app/assets/javascripts/boards/stores/boards_store.js.es6
+3
-3
app/assets/javascripts/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 @@
...
@@ -14,6 +14,13 @@
this.board.filters = this.getFilterData();
this.board.filters = this.getFilterData();
this.board.getIssues(true);
this.board.getIssues(true);
}
}
},
'filters': {
handler: function () {
this.board.filters = this.getFilterData();
this.board.getIssues(true);
},
deep: true
}
}
},
},
methods: {
methods: {
...
...
app/assets/javascripts/boards/components/new_list_dropdown.js.es6
View file @
fce8ee3e
...
@@ -11,8 +11,10 @@ $(() => {
...
@@ -11,8 +11,10 @@ $(() => {
});
});
},
},
renderRow: (label) => {
renderRow: (label) => {
if (BoardsStore.findList('title', label.title)) return;
const isHidden = BoardsStore.findList('title', label.title),
const $li = $('<li />'),
$li = $('<li />', {
class: (isHidden ? 'hidden' : '')
}),
$a = $('<a />', {
$a = $('<a />', {
text: label.title,
text: label.title,
href: '#'
href: '#'
...
...
app/assets/javascripts/boards/stores/boards_store.js.es6
View file @
fce8ee3e
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
state: {
state: {
lists: [],
lists: [],
filters: {
filters: {
author
: {}
,
author
_id: null
,
assignee
: {}
,
assignee
_id: null
,
milestone
: {}
,
milestone
_id: null
,
label: []
label: []
}
}
},
},
...
...
app/assets/javascripts/users_select.js
View file @
fce8ee3e
...
@@ -149,7 +149,9 @@
...
@@ -149,7 +149,9 @@
if
(
$dropdown
.
hasClass
(
'
js-filter-bulk-update
'
))
{
if
(
$dropdown
.
hasClass
(
'
js-filter-bulk-update
'
))
{
return
;
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
;
selectedId
=
user
.
id
;
return
Issuable
.
filterResults
(
$dropdown
.
closest
(
'
form
'
));
return
Issuable
.
filterResults
(
$dropdown
.
closest
(
'
form
'
));
}
else
if
(
$dropdown
.
hasClass
(
'
js-filter-submit
'
))
{
}
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