mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +01:00
Fixed lint errors
This commit is contained in:
parent
dba5de1882
commit
ebd884e654
6 changed files with 18 additions and 18 deletions
|
|
@ -41,16 +41,16 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
events() {
|
events() {
|
||||||
return [{
|
return [{
|
||||||
'click .js-set-board-actions' (event) {
|
'click .js-set-board-actions'(){
|
||||||
this.setBoardActions();
|
this.setBoardActions();
|
||||||
},
|
},
|
||||||
'click .js-set-card-actions' (event) {
|
'click .js-set-card-actions'() {
|
||||||
this.setCardActions();
|
this.setCardActions();
|
||||||
},
|
},
|
||||||
'click .js-set-mail-actions' (event) {
|
'click .js-set-mail-actions'() {
|
||||||
this.setMailActions();
|
this.setMailActions();
|
||||||
},
|
},
|
||||||
'click .js-set-checklist-actions' (event) {
|
'click .js-set-checklist-actions'() {
|
||||||
this.setChecklistActions();
|
this.setChecklistActions();
|
||||||
},
|
},
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
events() {
|
events() {
|
||||||
return [{
|
return [{
|
||||||
'click .js-delete-rule' (event) {
|
'click .js-delete-rule' () {
|
||||||
const rule = this.currentData();
|
const rule = this.currentData();
|
||||||
Rules.remove(rule._id);
|
Rules.remove(rule._id);
|
||||||
Actions.remove(rule.actionId);
|
Actions.remove(rule.actionId);
|
||||||
|
|
|
||||||
|
|
@ -39,13 +39,13 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
events() {
|
events() {
|
||||||
return [{
|
return [{
|
||||||
'click .js-set-board-triggers' (event) {
|
'click .js-set-board-triggers' () {
|
||||||
this.setBoardTriggers();
|
this.setBoardTriggers();
|
||||||
},
|
},
|
||||||
'click .js-set-card-triggers' (event) {
|
'click .js-set-card-triggers' () {
|
||||||
this.setCardTriggers();
|
this.setCardTriggers();
|
||||||
},
|
},
|
||||||
'click .js-set-checklist-triggers' (event) {
|
'click .js-set-checklist-triggers' () {
|
||||||
this.setChecklistTriggers();
|
this.setChecklistTriggers();
|
||||||
},
|
},
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ function publishCheckActivity(userId, doc){
|
||||||
Activities.insert(act);
|
Activities.insert(act);
|
||||||
}
|
}
|
||||||
|
|
||||||
function publishChekListCompleted(userId, doc, fieldNames, modifier){
|
function publishChekListCompleted(userId, doc, fieldNames){
|
||||||
const card = Cards.findOne(doc.cardId);
|
const card = Cards.findOne(doc.cardId);
|
||||||
const boardId = card.boardId;
|
const boardId = card.boardId;
|
||||||
const checklistId = doc.checklistId;
|
const checklistId = doc.checklistId;
|
||||||
|
|
@ -136,7 +136,7 @@ function publishChekListCompleted(userId, doc, fieldNames, modifier){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function publishChekListUncompleted(userId, doc, fieldNames, modifier){
|
function publishChekListUncompleted(userId, doc, fieldNames){
|
||||||
const card = Cards.findOne(doc.cardId);
|
const card = Cards.findOne(doc.cardId);
|
||||||
const boardId = card.boardId;
|
const boardId = card.boardId;
|
||||||
const checklistId = doc.checklistId;
|
const checklistId = doc.checklistId;
|
||||||
|
|
@ -162,11 +162,11 @@ if (Meteor.isServer) {
|
||||||
|
|
||||||
ChecklistItems.after.update((userId, doc, fieldNames, modifier) => {
|
ChecklistItems.after.update((userId, doc, fieldNames, modifier) => {
|
||||||
publishCheckActivity(userId, doc);
|
publishCheckActivity(userId, doc);
|
||||||
publishChekListCompleted(userId, doc, fieldNames, modifier);
|
publishChekListCompleted(userId, doc, fieldNames);
|
||||||
});
|
});
|
||||||
|
|
||||||
ChecklistItems.before.update((userId, doc, fieldNames, modifier) => {
|
ChecklistItems.before.update((userId, doc, fieldNames, modifier) => {
|
||||||
publishChekListUncompleted(userId, doc, fieldNames, modifier);
|
publishChekListUncompleted(userId, doc, fieldNames);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -510,7 +510,7 @@ export class WekanCreator {
|
||||||
}
|
}
|
||||||
|
|
||||||
createTriggers(wekanTriggers, boardId) {
|
createTriggers(wekanTriggers, boardId) {
|
||||||
wekanTriggers.forEach((trigger, ruleIndex) => {
|
wekanTriggers.forEach((trigger) => {
|
||||||
if (trigger.hasOwnProperty('labelId')) {
|
if (trigger.hasOwnProperty('labelId')) {
|
||||||
trigger.labelId = this.labels[trigger.labelId];
|
trigger.labelId = this.labels[trigger.labelId];
|
||||||
}
|
}
|
||||||
|
|
@ -525,7 +525,7 @@ export class WekanCreator {
|
||||||
}
|
}
|
||||||
|
|
||||||
createActions(wekanActions, boardId) {
|
createActions(wekanActions, boardId) {
|
||||||
wekanActions.forEach((action, ruleIndex) => {
|
wekanActions.forEach((action) => {
|
||||||
if (action.hasOwnProperty('labelId')) {
|
if (action.hasOwnProperty('labelId')) {
|
||||||
action.labelId = this.labels[action.labelId];
|
action.labelId = this.labels[action.labelId];
|
||||||
}
|
}
|
||||||
|
|
@ -540,7 +540,7 @@ export class WekanCreator {
|
||||||
}
|
}
|
||||||
|
|
||||||
createRules(wekanRules, boardId) {
|
createRules(wekanRules, boardId) {
|
||||||
wekanRules.forEach((rule, ruleIndex) => {
|
wekanRules.forEach((rule) => {
|
||||||
// Create the rule
|
// Create the rule
|
||||||
rule.boardId = boardId;
|
rule.boardId = boardId;
|
||||||
rule.triggerId = this.triggers[rule.triggerId];
|
rule.triggerId = this.triggers[rule.triggerId];
|
||||||
|
|
|
||||||
|
|
@ -65,10 +65,10 @@ RulesHelper = {
|
||||||
const emailSubject = action.emailSubject;
|
const emailSubject = action.emailSubject;
|
||||||
try {
|
try {
|
||||||
Email.send({
|
Email.send({
|
||||||
to,
|
emailTo,
|
||||||
from: Accounts.emailTemplates.from,
|
from: Accounts.emailTemplates.from,
|
||||||
subject,
|
emailSubject,
|
||||||
text,
|
emailMsg,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue