summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJoel Louzado <jlouzado@gmail.com>2017-02-22 18:59:51 +0530
committerJoel Louzado <jlouzado@gmail.com>2017-02-22 18:59:51 +0530
commitb2e950540fe6ab973c812db55b5afd0681735c3d (patch)
treefd4abc9a129aec3d653fec0ce10d876bb66fe963 /client
parent02e381f6942ef8312a0d611c8deb6b393183ec37 (diff)
downloadwekan-b2e950540fe6ab973c812db55b5afd0681735c3d.tar.gz
wekan-b2e950540fe6ab973c812db55b5afd0681735c3d.tar.bz2
wekan-b2e950540fe6ab973c812db55b5afd0681735c3d.zip
changes for lint warnings
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardHeader.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js
index 7c57ef42..9b03ab56 100644
--- a/client/components/boards/boardHeader.js
+++ b/client/components/boards/boardHeader.js
@@ -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() {