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
f5a07117
Commit
f5a07117
authored
Jan 31, 2019
by
Rajat Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Append prioritized label before pagination
parent
f60bf03f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
app/assets/javascripts/label_manager.js
app/assets/javascripts/label_manager.js
+12
-1
changelogs/unreleased/24875-label.yml
changelogs/unreleased/24875-label.yml
+5
-0
No files found.
app/assets/javascripts/label_manager.js
View file @
f5a07117
...
...
@@ -70,7 +70,18 @@ export default class LabelManager {
const
$detachedLabel
=
$label
.
detach
();
this
.
toggleLabelPriorityBadge
(
$detachedLabel
,
action
);
$detachedLabel
.
appendTo
(
$target
);
const
$labelEls
=
$target
.
find
(
'
li.label-list-item
'
);
/*
* If there is a label element in the target, we'd want to
* append the new label just right next to it.
*/
if
(
$labelEls
.
length
)
{
$labelEls
.
last
().
after
(
$detachedLabel
);
}
else
{
$detachedLabel
.
appendTo
(
$target
);
}
if
(
$from
.
find
(
'
li
'
).
length
)
{
$from
.
find
(
'
.empty-message
'
).
removeClass
(
'
hidden
'
);
...
...
changelogs/unreleased/24875-label.yml
0 → 100644
View file @
f5a07117
---
title
:
Append prioritized label before pagination
merge_request
:
24815
author
:
type
:
fixed
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