mirror of
https://github.com/wekan/wekan.git
synced 2026-02-06 00:21:48 +01:00
Merge branch 'feature-rules' of https://github.com/Angtrim/wekan into Angtrim-feature-rules
This commit is contained in:
commit
d91e0358f3
12 changed files with 76 additions and 30 deletions
|
|
@ -118,7 +118,7 @@ function publishCheckActivity(userId, doc){
|
|||
Activities.insert(act);
|
||||
}
|
||||
|
||||
function publishChekListCompleted(userId, doc, fieldNames, modifier){
|
||||
function publishChekListCompleted(userId, doc, fieldNames){
|
||||
const card = Cards.findOne(doc.cardId);
|
||||
const boardId = card.boardId;
|
||||
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 boardId = card.boardId;
|
||||
const checklistId = doc.checklistId;
|
||||
|
|
@ -162,11 +162,11 @@ if (Meteor.isServer) {
|
|||
|
||||
ChecklistItems.after.update((userId, doc, fieldNames, modifier) => {
|
||||
publishCheckActivity(userId, doc);
|
||||
publishChekListCompleted(userId, doc, fieldNames, modifier);
|
||||
publishChekListCompleted(userId, doc, fieldNames);
|
||||
});
|
||||
|
||||
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) {
|
||||
wekanTriggers.forEach((trigger, ruleIndex) => {
|
||||
wekanTriggers.forEach((trigger) => {
|
||||
if (trigger.hasOwnProperty('labelId')) {
|
||||
trigger.labelId = this.labels[trigger.labelId];
|
||||
}
|
||||
|
|
@ -525,7 +525,7 @@ export class WekanCreator {
|
|||
}
|
||||
|
||||
createActions(wekanActions, boardId) {
|
||||
wekanActions.forEach((action, ruleIndex) => {
|
||||
wekanActions.forEach((action) => {
|
||||
if (action.hasOwnProperty('labelId')) {
|
||||
action.labelId = this.labels[action.labelId];
|
||||
}
|
||||
|
|
@ -540,7 +540,7 @@ export class WekanCreator {
|
|||
}
|
||||
|
||||
createRules(wekanRules, boardId) {
|
||||
wekanRules.forEach((rule, ruleIndex) => {
|
||||
wekanRules.forEach((rule) => {
|
||||
// Create the rule
|
||||
rule.boardId = boardId;
|
||||
rule.triggerId = this.triggers[rule.triggerId];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue