Skip to content

Commit

Permalink
bug fix when dragging last card from column without drop
Browse files Browse the repository at this point in the history
  • Loading branch information
FePrHPI committed May 28, 2024
1 parent c078159 commit 982011f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
accessing
isLastCard: anSPBCard

self cards isEmpty ifTrue: [^ false].
^ self cards last = anSPBCard.
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBColumn.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"initializeBottomDetection" : "mcr 7/19/2022 13:18",
"initializeIndicator" : "lo 8/1/2022 12:27",
"isColumn" : "lo 8/1/2022 14:49",
"isLastCard:" : "NTK 7/30/2022 11:10",
"isLastCard:" : "FP 5/28/2024 12:01",
"jsonCards" : "lo 6/8/2022 10:19",
"jsonCards:" : "LW 7/14/2022 11:12",
"minimumHeight" : "LW 7/14/2022 11:32",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tests
testLastCardInEmpty

| card |
card := SPBCard new id: 42.
self assert: false equals: (column isLastCard: card).
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"testChangeIndexOfColumn" : "mcr 8/1/2022 02:10",
"testId" : "tk 7/30/2022 23:34",
"testIsLastCard" : "mcr 8/1/2022 02:40",
"testLastCardInEmpty" : "FP 5/28/2024 12:01",
"testMoveColumn" : "lo 8/1/2022 16:34",
"testNewFrom" : "tk 7/30/2022 23:36",
"testProvider" : "tk 7/30/2022 23:34",
Expand Down

0 comments on commit 982011f

Please sign in to comment.