mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15: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() {
|
||||
subManager.subscribe('board', Session.get('currentBoard'));
|
||||
this.selectedBoardId = new ReactiveVar(Session.get('currentBoard'));
|
||||
const boardId = Boards.findOne({
|
||||
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('');
|
||||
},
|
||||
|
||||
|
|
@ -347,6 +352,7 @@ BlazeComponent.extendComponent({
|
|||
const boards = Boards.find({
|
||||
archived: false,
|
||||
'members.userId': Meteor.userId(),
|
||||
_id: {$ne: Session.get('currentBoard')},
|
||||
}, {
|
||||
sort: ['title'],
|
||||
});
|
||||
|
|
@ -368,7 +374,7 @@ BlazeComponent.extendComponent({
|
|||
evt.preventDefault();
|
||||
this.term.set(evt.target.searchTerm.value);
|
||||
},
|
||||
'click .js-minicard'() {
|
||||
'click .js-minicard'(evt) {
|
||||
// IMPORT CARD
|
||||
},
|
||||
}];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue