mirror of
https://github.com/wekan/wekan.git
synced 2026-02-05 16:11:47 +01:00
Main flow implemented
This commit is contained in:
parent
9b0eb0a9f1
commit
6828ccd7f1
9 changed files with 100 additions and 15 deletions
|
|
@ -29,6 +29,8 @@ BlazeComponent.extendComponent({
|
|||
return [{'click .js-delete-rule'(event) {
|
||||
const rule = this.currentData();
|
||||
Rules.remove(rule._id);
|
||||
Actions.remove(rule.actionId);
|
||||
Triggers.remove(rule.triggerId);
|
||||
|
||||
},
|
||||
'click .js-goto-trigger'(event) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ BlazeComponent.extendComponent({
|
|||
const actionSelected = this.find('#action').value;
|
||||
const boardId = Session.get('currentBoard')
|
||||
if(actionSelected == "created"){
|
||||
Triggers.insert({activityType: "createCard","boardId":boardId},function(error,id){
|
||||
Triggers.insert({activityType: "createCard","boardId":boardId,"listId":"*"},function(error,id){
|
||||
datas.triggerIdVar.set(id);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue