mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix : Clicking to view Lists or Swimlanes Archive adds temporarily many empty Lists to board
This commit is contained in:
parent
9b22e6da7a
commit
9eb6a1d6af
2 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
archivedRequested = false;
|
||||
//archivedRequested = false;
|
||||
const subManager = new SubsManager();
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
|
@ -13,7 +13,7 @@ BlazeComponent.extendComponent({
|
|||
const currentBoardId = Session.get('currentBoard');
|
||||
if (!currentBoardId) return;
|
||||
const handle = subManager.subscribe('board', currentBoardId, true);
|
||||
archivedRequested = true;
|
||||
//archivedRequested = true;
|
||||
Tracker.nonreactive(() => {
|
||||
Tracker.autorun(() => {
|
||||
this.isArchiveReady.set(handle.ready());
|
||||
|
|
|
@ -148,8 +148,8 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
visible(list) {
|
||||
if (list.archived) {
|
||||
// Show archived list only when filter archive is on or archive is selected
|
||||
if (!(Filter.archive.isSelected() || archivedRequested)) {
|
||||
// Show archived list only when filter archive is on
|
||||
if (!Filter.archive.isSelected()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -280,8 +280,8 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
visible(list) {
|
||||
if (list.archived) {
|
||||
// Show archived list only when filter archive is on or archive is selected
|
||||
if (!(Filter.archive.isSelected() || archivedRequested)) {
|
||||
// Show archived list only when filter archive is on
|
||||
if (!Filter.archive.isSelected()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue