diff options
author | Joel Louzado <jlouzado@gmail.com> | 2017-02-22 18:59:51 +0530 |
---|---|---|
committer | Joel Louzado <jlouzado@gmail.com> | 2017-02-22 18:59:51 +0530 |
commit | b2e950540fe6ab973c812db55b5afd0681735c3d (patch) | |
tree | fd4abc9a129aec3d653fec0ce10d876bb66fe963 /client/components/boards/boardHeader.js | |
parent | 02e381f6942ef8312a0d611c8deb6b393183ec37 (diff) | |
download | wekan-b2e950540fe6ab973c812db55b5afd0681735c3d.tar.gz wekan-b2e950540fe6ab973c812db55b5afd0681735c3d.tar.bz2 wekan-b2e950540fe6ab973c812db55b5afd0681735c3d.zip |
changes for lint warnings
Diffstat (limited to 'client/components/boards/boardHeader.js')
-rw-r--r-- | client/components/boards/boardHeader.js | 12 |
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() { |