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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d6db1c5a
Commit
d6db1c5a
authored
Mar 22, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] add assignee(s) dropdown header
parent
7e1d5068
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+9
-2
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+1
-3
No files found.
app/assets/javascripts/users_select.js
View file @
d6db1c5a
...
...
@@ -173,7 +173,7 @@
}
if
(
showDivider
)
{
users
.
splice
(
showDivider
,
0
,
"
divider
"
);
users
.
splice
(
showDivider
,
0
,
'
divider
'
);
}
if
(
$dropdown
.
hasClass
(
'
js-multiselect
'
))
{
...
...
@@ -186,6 +186,11 @@
.
filter
((
i
)
=>
i
!==
0
);
if
(
selected
.
length
>
0
)
{
showDivider
+=
1
;
users
.
splice
(
showDivider
,
0
,
{
header
:
$dropdown
.
data
(
'
dropdown-header
'
)
||
'
Assignee(s)
'
,
});
const
selectedUsers
=
users
.
filter
((
u
)
=>
selected
.
indexOf
(
u
.
id
)
!==
-
1
)
.
sort
((
a
,
b
)
=>
a
.
name
>
b
.
name
);
...
...
@@ -220,7 +225,9 @@
if
(
this
.
multiSelect
&&
inputValue
===
''
)
{
const
users
=
glDropdown
.
fullData
.
filter
((
r
)
=>
{
return
typeof
r
===
'
object
'
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
'
beforeDivider
'
);
return
typeof
r
===
'
object
'
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
'
beforeDivider
'
)
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
'
header
'
);
});
const
callback
=
glDropdown
.
parseData
.
bind
(
glDropdown
);
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
d6db1c5a
...
...
@@ -222,11 +222,9 @@
}
.dropdown-header
{
color
:
$gl-text-color
;
color
:
$gl-text-color
-secondary
;
font-size
:
13px
;
font-weight
:
600
;
line-height
:
22px
;
text-transform
:
capitalize
;
padding
:
0
16px
;
}
...
...
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