summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Hartmayer <hello@hartmayer.com>2020-04-21 17:06:39 +0200
committerMarc Hartmayer <hello@hartmayer.com>2020-04-21 18:15:29 +0200
commitb2acc3ba45c48d3bb3b25e84bc31f5b80e7961d4 (patch)
tree412c87a8eeb2976677b7269ab577a82a97bfdb6b
parent3407b0e65b0ed3cbd864d605f6cd5935db22c987 (diff)
downloadwekan-b2acc3ba45c48d3bb3b25e84bc31f5b80e7961d4.tar.gz
wekan-b2acc3ba45c48d3bb3b25e84bc31f5b80e7961d4.tar.bz2
wekan-b2acc3ba45c48d3bb3b25e84bc31f5b80e7961d4.zip
Multiple lint issue fixes
Found by using the command `meteor npm run lint:eslint:fix`.
-rw-r--r--client/components/boards/boardsList.js4
-rw-r--r--client/components/cards/cardDetails.js6
-rw-r--r--models/cards.js4
3 files changed, 7 insertions, 7 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index c700084f..847ea395 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.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';
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index ce504146..a578ba7c 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -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;
}
diff --git a/models/cards.js b/models/cards.js
index 5a812679..485837ef 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1475,12 +1475,12 @@ Cards.mutations({
},
};
},
- setVoteQuestion(question, public) {
+ setVoteQuestion(question, public_) {
return {
$set: {
vote: {
question,
- public,
+ public_,
positive: [],
negative: [],
},