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
Léo-Paul Géneau
gitlab-ce
Commits
fce8ee3e
Commit
fce8ee3e
authored
8 years ago
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can filter by author & assignee
parent
d06e20b2
No related merge requests found
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 @@
this.board.filters = this.getFilterData();
this.board.getIssues(true);
}
},
'filters': {
handler: function () {
this.board.filters = this.getFilterData();
this.board.getIssues(true);
},
deep: true
}
},
methods: {
...
...
This diff is collapsed.
Click to expand it.
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: '#'
...
...
This diff is collapsed.
Click to expand it.
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: []
}
},
...
...
This diff is collapsed.
Click to expand it.
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
'
))
{
...
...
This diff is collapsed.
Click to expand it.
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