Merge pull request #3031 from marc1006/style_issues

Multiple lint issue fixes
reviewable/pr3032/r1
Lauri Ojansivu 5 years ago committed by GitHub
commit 5a5b19d4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      client/components/boards/boardsList.js
  2. 6
      client/components/cards/cardDetails.js
  3. 4
      models/cards.js

@ -9,7 +9,7 @@ Template.boardListHeaderBar.events({
Template.boardListHeaderBar.helpers({
title() {
return FlowRouter.getRouteName() == 'home' ? 'my-boards' : 'public';
return FlowRouter.getRouteName() === 'home' ? 'my-boards' : 'public';
},
templatesBoardId() {
return Meteor.user() && Meteor.user().getTemplatesBoardId();
@ -82,7 +82,7 @@ BlazeComponent.extendComponent({
archived: false,
type: 'board',
};
if (FlowRouter.getRouteName() == 'home')
if (FlowRouter.getRouteName() === 'home')
query['members.userId'] = Meteor.userId();
else query.permission = 'public';

@ -420,9 +420,9 @@ BlazeComponent.extendComponent({
const forIt = $(e.target).hasClass('js-vote-positive');
let newState = null;
if (
this.voteState() == null ||
(this.voteState() == false && forIt) ||
(this.voteState() == true && !forIt)
this.voteState() === null ||
(this.voteState() === false && forIt) ||
(this.voteState() === true && !forIt)
) {
newState = forIt;
}

@ -1475,12 +1475,12 @@ Cards.mutations({
},
};
},
setVoteQuestion(question, public) {
setVoteQuestion(question, public_) {
return {
$set: {
vote: {
question,
public,
public_,
positive: [],
negative: [],
},

Loading…
Cancel
Save