Fix lint errors.

This commit is contained in:
Lauri Ojansivu 2018-09-16 01:50:36 +03:00
parent b3a752ef34
commit df84a2be9a
34 changed files with 991 additions and 999 deletions

View file

@ -12,34 +12,34 @@ BlazeComponent.extendComponent({
const listTitle = this.find('#listName').value;
const boardId = Session.get('currentBoard');
const desc = Utils.getTriggerActionDesc(event, this);
if (actionSelected == "top") {
if (actionSelected === 'top') {
const triggerId = Triggers.insert(trigger);
const actionId = Actions.insert({
actionType: "moveCardToTop",
"listTitle": listTitle,
"boardId": boardId,
"desc": desc
actionType: 'moveCardToTop',
listTitle,
boardId,
desc,
});
Rules.insert({
title: ruleName,
triggerId: triggerId,
actionId: actionId,
"boardId": boardId
triggerId,
actionId,
boardId,
});
}
if (actionSelected == "bottom") {
if (actionSelected === 'bottom') {
const triggerId = Triggers.insert(trigger);
const actionId = Actions.insert({
actionType: "moveCardToBottom",
"listTitle": listTitle,
"boardId": boardId,
"desc": desc
actionType: 'moveCardToBottom',
listTitle,
boardId,
desc,
});
Rules.insert({
title: ruleName,
triggerId: triggerId,
actionId: actionId,
"boardId": boardId
triggerId,
actionId,
boardId,
});
}
},
@ -49,34 +49,34 @@ BlazeComponent.extendComponent({
const ruleName = this.data().ruleName.get();
const trigger = this.data().triggerVar.get();
const actionSelected = this.find('#move-gen-action').value;
if (actionSelected == "top") {
if (actionSelected === 'top') {
const triggerId = Triggers.insert(trigger);
const actionId = Actions.insert({
actionType: "moveCardToTop",
"listTitle": "*",
"boardId": boardId,
"desc": desc
actionType: 'moveCardToTop',
'listTitle': '*',
boardId,
desc,
});
Rules.insert({
title: ruleName,
triggerId: triggerId,
actionId: actionId,
"boardId": boardId
triggerId,
actionId,
boardId,
});
}
if (actionSelected == "bottom") {
if (actionSelected === 'bottom') {
const triggerId = Triggers.insert(trigger);
const actionId = Actions.insert({
actionType: "moveCardToBottom",
"listTitle": "*",
"boardId": boardId,
"desc": desc
actionType: 'moveCardToBottom',
'listTitle': '*',
boardId,
desc,
});
Rules.insert({
title: ruleName,
triggerId: triggerId,
actionId: actionId,
"boardId": boardId
triggerId,
actionId,
boardId,
});
}
},
@ -86,36 +86,37 @@ BlazeComponent.extendComponent({
const ruleName = this.data().ruleName.get();
const trigger = this.data().triggerVar.get();
const actionSelected = this.find('#arch-action').value;
if (actionSelected == "archive") {
if (actionSelected === 'archive') {
const triggerId = Triggers.insert(trigger);
const actionId = Actions.insert({
actionType: "archive",
"boardId": boardId,
"desc": desc
actionType: 'archive',
boardId,
desc,
});
Rules.insert({
title: ruleName,
triggerId: triggerId,
actionId: actionId,
"boardId": boardId
triggerId,
actionId,
boardId,
});
}
if (actionSelected == "unarchive") {
if (actionSelected === 'unarchive') {
const triggerId = Triggers.insert(trigger);
const actionId = Actions.insert({
actionType: "unarchive",
"boardId": boardId,
"desc": desc
actionType: 'unarchive',
boardId,
desc,
});
Rules.insert({
title: ruleName,
triggerId: triggerId,
actionId: actionId,
"boardId": boardId
triggerId,
actionId,
boardId,
});
}
},
}];
},
}).register('boardActions');
}).register('boardActions');
/* eslint-no-undef */