summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-22 20:06:50 +0300
committerGitHub <noreply@github.com>2020-04-22 20:06:50 +0300
commit5a5b19d4fc889f5c3e9d7feb32539a2787440027 (patch)
tree6640ec2cf3ec3b0e54640295a024daacfded87fb /client
parent4d48fa4d9552452c5cfe3736e6a476aca26c5b8b (diff)
parentb2acc3ba45c48d3bb3b25e84bc31f5b80e7961d4 (diff)
downloadwekan-5a5b19d4fc889f5c3e9d7feb32539a2787440027.tar.gz
wekan-5a5b19d4fc889f5c3e9d7feb32539a2787440027.tar.bz2
wekan-5a5b19d4fc889f5c3e9d7feb32539a2787440027.zip
Merge pull request #3031 from marc1006/style_issues
Multiple lint issue fixes
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardsList.js4
-rw-r--r--client/components/cards/cardDetails.js6
2 files changed, 5 insertions, 5 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;
}