feat: Move US to the end when status archived and hidden
parent
6478cbf9c7
commit
547b1016d4
|
@ -94,6 +94,7 @@ class KanbanUserstoriesService extends taiga.Service
|
||||||
@.refresh()
|
@.refresh()
|
||||||
|
|
||||||
move: (usList, statusId, index) ->
|
move: (usList, statusId, index) ->
|
||||||
|
|
||||||
initialLength = usList.length
|
initialLength = usList.length
|
||||||
|
|
||||||
usByStatus = _.filter @.userstoriesRaw, (it) =>
|
usByStatus = _.filter @.userstoriesRaw, (it) =>
|
||||||
|
@ -123,7 +124,13 @@ class KanbanUserstoriesService extends taiga.Service
|
||||||
setPreviousOrders = []
|
setPreviousOrders = []
|
||||||
setNextOrders = []
|
setNextOrders = []
|
||||||
|
|
||||||
if !previous
|
isArchivedHiddenStatus = @.archivedStatus.indexOf(statusId) != -1 &&
|
||||||
|
@.statusHide.indexOf(statusId) != -1
|
||||||
|
|
||||||
|
if isArchivedHiddenStatus
|
||||||
|
startIndex = new Date().getTime()
|
||||||
|
|
||||||
|
else if !previous
|
||||||
startIndex = 0
|
startIndex = 0
|
||||||
else if previous
|
else if previous
|
||||||
startIndex = @.order[previous.id] + 1
|
startIndex = @.order[previous.id] + 1
|
||||||
|
|
Loading…
Reference in New Issue