mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 17:30:13 +01:00
Avoid showing current board
This commit is contained in:
parent
dcc7b2970f
commit
061a13e46e
1 changed files with 9 additions and 3 deletions
|
|
@ -338,8 +338,13 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
onCreated() {
|
onCreated() {
|
||||||
subManager.subscribe('board', Session.get('currentBoard'));
|
const boardId = Boards.findOne({
|
||||||
this.selectedBoardId = new ReactiveVar(Session.get('currentBoard'));
|
archived: false,
|
||||||
|
'members.userId': Meteor.userId(),
|
||||||
|
_id: {$ne: Session.get('currentBoard')},
|
||||||
|
})._id;
|
||||||
|
subManager.subscribe('board', boardId);
|
||||||
|
this.selectedBoardId = new ReactiveVar(boardId);
|
||||||
this.term = new ReactiveVar('');
|
this.term = new ReactiveVar('');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -347,6 +352,7 @@ BlazeComponent.extendComponent({
|
||||||
const boards = Boards.find({
|
const boards = Boards.find({
|
||||||
archived: false,
|
archived: false,
|
||||||
'members.userId': Meteor.userId(),
|
'members.userId': Meteor.userId(),
|
||||||
|
_id: {$ne: Session.get('currentBoard')},
|
||||||
}, {
|
}, {
|
||||||
sort: ['title'],
|
sort: ['title'],
|
||||||
});
|
});
|
||||||
|
|
@ -368,7 +374,7 @@ BlazeComponent.extendComponent({
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
this.term.set(evt.target.searchTerm.value);
|
this.term.set(evt.target.searchTerm.value);
|
||||||
},
|
},
|
||||||
'click .js-minicard'() {
|
'click .js-minicard'(evt) {
|
||||||
// IMPORT CARD
|
// IMPORT CARD
|
||||||
},
|
},
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue