Feature: show issue assignee on project board (#15232)
* Show assignees in project boards.
This commit is contained in:
parent
1546580f9e
commit
bbce905b6a
4 changed files with 27 additions and 6 deletions
|
@ -2,8 +2,16 @@ import $ from 'jquery';
|
|||
|
||||
const {csrfToken} = window.config;
|
||||
|
||||
function updateIssueCount(cards) {
|
||||
const parent = cards.parentElement;
|
||||
const cnt = parent.getElementsByClassName('board-card').length;
|
||||
parent.getElementsByClassName('board-card-cnt')[0].innerText = cnt;
|
||||
}
|
||||
|
||||
function moveIssue({item, from, to, oldIndex}) {
|
||||
const columnCards = to.getElementsByClassName('board-card');
|
||||
updateIssueCount(from);
|
||||
updateIssueCount(to);
|
||||
|
||||
const columnSorting = {
|
||||
issues: [...columnCards].map((card, i) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue