diff options
author | Roger Luo <rogerluo410@gmail.com> | 2022-03-09 00:42:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 00:42:28 +0800 |
commit | bbce905b6acb3f91489ed902bcf9cdeb019d3a58 (patch) | |
tree | a4052ea2072e4c3c268b38526e280a49ff196f22 /web_src | |
parent | 1546580f9e6bcb5fcd057e0cb10b1884efee3763 (diff) | |
download | gitea-bbce905b6acb3f91489ed902bcf9cdeb019d3a58.tar.gz gitea-bbce905b6acb3f91489ed902bcf9cdeb019d3a58.zip |
Feature: show issue assignee on project board (#15232)
* Show assignees in project boards.
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/features/repo-projects.js | 8 | ||||
-rw-r--r-- | web_src/less/features/projects.less | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/web_src/js/features/repo-projects.js b/web_src/js/features/repo-projects.js index 3147626b51..a948eba807 100644 --- a/web_src/js/features/repo-projects.js +++ b/web_src/js/features/repo-projects.js @@ -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) => ({ diff --git a/web_src/less/features/projects.less b/web_src/less/features/projects.less index 99722b6cc5..21514688b6 100644 --- a/web_src/less/features/projects.less +++ b/web_src/less/features/projects.less @@ -48,6 +48,7 @@ .board-column > .cards { flex: 1; display: flex; + align-content: baseline; margin: 0 !important; padding: 0 !important; flex-wrap: nowrap !important; |