mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Merge pull request #2320 from rinnaz/fix/issue-2285
Add variables for activity notifications Fixes #2285
This commit is contained in:
commit
a6e1dc4269
5 changed files with 26 additions and 0 deletions
|
@ -72,6 +72,8 @@ if (Meteor.isServer) {
|
|||
attachmentId: doc._id,
|
||||
boardId: doc.boardId,
|
||||
cardId: doc.cardId,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
} else {
|
||||
// Don't add activity about adding the attachment as the activity
|
||||
|
@ -96,6 +98,8 @@ if (Meteor.isServer) {
|
|||
activityType: 'deleteAttachment',
|
||||
boardId: doc.boardId,
|
||||
cardId: doc.cardId,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -87,6 +87,8 @@ function commentCreation(userId, doc){
|
|||
boardId: doc.boardId,
|
||||
cardId: doc.cardId,
|
||||
commentId: doc._id,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1356,6 +1356,7 @@ function cardState(userId, doc, fieldNames) {
|
|||
boardId: doc.boardId,
|
||||
listId: doc.listId,
|
||||
cardId: doc._id,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
} else {
|
||||
Activities.insert({
|
||||
|
@ -1365,6 +1366,7 @@ function cardState(userId, doc, fieldNames) {
|
|||
listName: Lists.findOne(doc.listId).title,
|
||||
listId: doc.listId,
|
||||
cardId: doc._id,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1426,6 +1428,8 @@ function cardLabels(userId, doc, fieldNames, modifier) {
|
|||
activityType: 'addedLabel',
|
||||
boardId: doc.boardId,
|
||||
cardId: doc._id,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
@ -1442,6 +1446,8 @@ function cardLabels(userId, doc, fieldNames, modifier) {
|
|||
activityType: 'removedLabel',
|
||||
boardId: doc.boardId,
|
||||
cardId: doc._id,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,6 +95,8 @@ function itemCreation(userId, doc) {
|
|||
checklistId: doc.checklistId,
|
||||
checklistItemId: doc._id,
|
||||
checklistItemName:doc.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -121,6 +123,8 @@ function publishCheckActivity(userId, doc){
|
|||
checklistId: doc.checklistId,
|
||||
checklistItemId: doc._id,
|
||||
checklistItemName:doc.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
@ -138,6 +142,8 @@ function publishChekListCompleted(userId, doc){
|
|||
boardId,
|
||||
checklistId: doc.checklistId,
|
||||
checklistName: checkList.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
@ -169,6 +175,8 @@ function publishChekListUncompleted(userId, doc){
|
|||
boardId,
|
||||
checklistId: doc.checklistId,
|
||||
checklistName: checkList.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
@ -207,6 +215,8 @@ if (Meteor.isServer) {
|
|||
checklistId: doc.checklistId,
|
||||
checklistItemId: doc._id,
|
||||
checklistItemName:doc.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -135,6 +135,8 @@ if (Meteor.isServer) {
|
|||
boardId: Cards.findOne(doc.cardId).boardId,
|
||||
checklistId: doc._id,
|
||||
checklistName:doc.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -152,6 +154,8 @@ if (Meteor.isServer) {
|
|||
boardId: Cards.findOne(doc.cardId).boardId,
|
||||
checklistId: doc._id,
|
||||
checklistName:doc.title,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue