mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fixed some rules
This commit is contained in:
parent
254c7fe951
commit
37a53e7466
3 changed files with 8 additions and 8 deletions
|
@ -78,7 +78,7 @@ BlazeComponent.extendComponent({
|
|||
const actionSelected = this.find('#spec-comp-check-action').value;
|
||||
const checklistId = this.find('#spec-comp-check-name').value;
|
||||
const boardId = Session.get('currentBoard');
|
||||
if (actionSelected === 'added') {
|
||||
if (actionSelected === 'completed') {
|
||||
datas.triggerVar.set({
|
||||
activityType: 'completeChecklist',
|
||||
boardId,
|
||||
|
@ -86,7 +86,7 @@ BlazeComponent.extendComponent({
|
|||
desc,
|
||||
});
|
||||
}
|
||||
if (actionSelected === 'removed') {
|
||||
if (actionSelected === 'uncompleted') {
|
||||
datas.triggerVar.set({
|
||||
activityType: 'uncompleteChecklist',
|
||||
boardId,
|
||||
|
|
|
@ -130,7 +130,7 @@ function publishChekListCompleted(userId, doc, fieldNames, modifier){
|
|||
cardId: doc.cardId,
|
||||
boardId,
|
||||
checklistId: doc.checklistId,
|
||||
checklistName:doc.title,
|
||||
checklistName:checkList.title,
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ function publishChekListUncompleted(userId, doc, fieldNames, modifier){
|
|||
cardId: doc.cardId,
|
||||
boardId,
|
||||
checklistId: doc.checklistId,
|
||||
checklistName:doc.title,
|
||||
checklistName:checkList.title,
|
||||
};
|
||||
Activities.insert(act);
|
||||
}
|
||||
|
|
|
@ -36,8 +36,8 @@ RulesHelper = {
|
|||
if(action.actionType === 'moveCardToTop'){
|
||||
let listId;
|
||||
let list;
|
||||
if(activity.listTitle === '*'){
|
||||
listId = card.swimlaneId;
|
||||
if(action.listTitle === '*'){
|
||||
listId = card.listId;
|
||||
list = card.list();
|
||||
}else{
|
||||
list = Lists.findOne({title: action.listTitle, boardId });
|
||||
|
@ -49,8 +49,8 @@ RulesHelper = {
|
|||
if(action.actionType === 'moveCardToBottom'){
|
||||
let listId;
|
||||
let list;
|
||||
if(activity.listTitle === '*'){
|
||||
listId = card.swimlaneId;
|
||||
if(action.listTitle === '*'){
|
||||
listId = card.listId;
|
||||
list = card.list();
|
||||
}else{
|
||||
list = Lists.findOne({title: action.listTitle, boardId});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue