mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Multiple lint issue fixes
Found by using the command `meteor npm run lint:eslint:fix`.
This commit is contained in:
parent
3407b0e65b
commit
b2acc3ba45
3 changed files with 7 additions and 7 deletions
|
|
@ -9,7 +9,7 @@ Template.boardListHeaderBar.events({
|
||||||
|
|
||||||
Template.boardListHeaderBar.helpers({
|
Template.boardListHeaderBar.helpers({
|
||||||
title() {
|
title() {
|
||||||
return FlowRouter.getRouteName() == 'home' ? 'my-boards' : 'public';
|
return FlowRouter.getRouteName() === 'home' ? 'my-boards' : 'public';
|
||||||
},
|
},
|
||||||
templatesBoardId() {
|
templatesBoardId() {
|
||||||
return Meteor.user() && Meteor.user().getTemplatesBoardId();
|
return Meteor.user() && Meteor.user().getTemplatesBoardId();
|
||||||
|
|
@ -82,7 +82,7 @@ BlazeComponent.extendComponent({
|
||||||
archived: false,
|
archived: false,
|
||||||
type: 'board',
|
type: 'board',
|
||||||
};
|
};
|
||||||
if (FlowRouter.getRouteName() == 'home')
|
if (FlowRouter.getRouteName() === 'home')
|
||||||
query['members.userId'] = Meteor.userId();
|
query['members.userId'] = Meteor.userId();
|
||||||
else query.permission = 'public';
|
else query.permission = 'public';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -420,9 +420,9 @@ BlazeComponent.extendComponent({
|
||||||
const forIt = $(e.target).hasClass('js-vote-positive');
|
const forIt = $(e.target).hasClass('js-vote-positive');
|
||||||
let newState = null;
|
let newState = null;
|
||||||
if (
|
if (
|
||||||
this.voteState() == null ||
|
this.voteState() === null ||
|
||||||
(this.voteState() == false && forIt) ||
|
(this.voteState() === false && forIt) ||
|
||||||
(this.voteState() == true && !forIt)
|
(this.voteState() === true && !forIt)
|
||||||
) {
|
) {
|
||||||
newState = forIt;
|
newState = forIt;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1475,12 +1475,12 @@ Cards.mutations({
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
setVoteQuestion(question, public) {
|
setVoteQuestion(question, public_) {
|
||||||
return {
|
return {
|
||||||
$set: {
|
$set: {
|
||||||
vote: {
|
vote: {
|
||||||
question,
|
question,
|
||||||
public,
|
public_,
|
||||||
positive: [],
|
positive: [],
|
||||||
negative: [],
|
negative: [],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue