Append prioritized label before pagination
This commit is contained in:
parent
f60bf03f5c
commit
f5a0711732
|
@ -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');
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Append prioritized label before pagination
|
||||
merge_request: 24815
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in New Issue