File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 75
75
<div class="ui segment board-column" data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}">
76
76
<div class="board-column-header">
77
77
<div class="ui large label board-label">
78
- <div class="ui small circular grey label">
78
+ <div class="ui small circular grey label board-card-cnt ">
79
79
{{ len .Issues}}
80
80
</div>
81
81
{{.Title}}
Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ export default async function initProject() {
50
50
} ,
51
51
contentType : 'application/json' ,
52
52
type : 'POST' ,
53
+ success : ( ) => {
54
+ // Update the number of cards in board while drop successful.
55
+ const fromCnt = e . from . parentElement . getElementsByClassName ( 'board-card' ) . length ;
56
+ e . from . parentElement . getElementsByClassName ( 'board-card-cnt' ) [ 0 ] . innerText = fromCnt ;
57
+
58
+ const toCnt = e . to . parentElement . getElementsByClassName ( 'board-card' ) . length ;
59
+ e . to . parentElement . getElementsByClassName ( 'board-card-cnt' ) [ 0 ] . innerText = toCnt ;
60
+ } ,
53
61
error : ( ) => {
54
62
e . from . insertBefore ( e . item , e . from . children [ e . oldIndex ] ) ;
55
63
} ,
You can’t perform that action at this time.
0 commit comments