Feature: show issue assignee on project board (#15232)

* Show assignees in project boards.
This commit is contained in:
Roger Luo 2022-03-09 00:42:28 +08:00 committed by GitHub
parent 1546580f9e
commit bbce905b6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 6 deletions

View file

@ -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) => ({