mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Move Checklist, getBoardData only resets the swimlane and list if the board id was changed
This commit is contained in:
parent
7501e255dd
commit
ea95357ae4
1 changed files with 7 additions and 4 deletions
|
@ -511,13 +511,16 @@ BlazeComponent.extendComponent({
|
|||
const self = this;
|
||||
Meteor.subscribe('board', boardId, false, {
|
||||
onReady() {
|
||||
const sameBoardId = self.selectedBoardId.get() == boardId;
|
||||
self.selectedBoardId.set(boardId);
|
||||
|
||||
// reset swimlane id (for selection in cards())
|
||||
self.setFirstSwimlaneId();
|
||||
if (!sameBoardId) {
|
||||
// reset swimlane id (for selection in cards())
|
||||
self.setFirstSwimlaneId();
|
||||
|
||||
// reset list id (for selection in cards())
|
||||
self.setFirstListId();
|
||||
// reset list id (for selection in cards())
|
||||
self.setFirstListId();
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue