mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 21:47:10 -04:00
changes for lint warnings
This commit is contained in:
parent
02e381f694
commit
b2e950540f
1 changed files with 6 additions and 6 deletions
|
@ -127,7 +127,7 @@ const CreateBoard = BlazeComponent.extendComponent({
|
|||
onCreated() {
|
||||
this.visibilityMenuIsOpen = new ReactiveVar(false);
|
||||
this.visibility = new ReactiveVar('private');
|
||||
const boardId = '';
|
||||
this.boardId = new ReactiveVar('');
|
||||
},
|
||||
|
||||
visibilityCheck() {
|
||||
|
@ -148,12 +148,12 @@ const CreateBoard = BlazeComponent.extendComponent({
|
|||
const title = this.find('.js-new-board-title').value;
|
||||
const visibility = this.visibility.get();
|
||||
|
||||
boardId = Boards.insert({
|
||||
this.boardId.set(Boards.insert({
|
||||
title,
|
||||
permission: visibility,
|
||||
});
|
||||
}));
|
||||
|
||||
Utils.goBoardId(boardId);
|
||||
Utils.goBoardId(this.boardId.get());
|
||||
},
|
||||
|
||||
events() {
|
||||
|
@ -172,9 +172,9 @@ const CreateBoard = BlazeComponent.extendComponent({
|
|||
onSubmit(evt) {
|
||||
super.onSubmit(evt);
|
||||
// Immediately star boards crated with the headerbar popup.
|
||||
Meteor.user().toggleBoardStar(boardId);
|
||||
Meteor.user().toggleBoardStar(this.boardId.get());
|
||||
}
|
||||
}).register('headerBarCreateBoardPopup')
|
||||
}).register('headerBarCreateBoardPopup');
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
visibilityCheck() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue