mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Feature: show issue assignee on project board (#15232)
* Show assignees in project boards.
This commit is contained in:
		@@ -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) => ({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user