diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-08-16 00:32:31 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-08-16 00:32:31 +0200 |
commit | 6828ccd7f17d14f178e6742d78bdd14428ec6e07 (patch) | |
tree | bca97277f80b29bf224e92b73e5fa6ec630f53c9 /client | |
parent | 9b0eb0a9f1973e05df7199cf2bff7518f2fa98dc (diff) | |
download | wekan-6828ccd7f17d14f178e6742d78bdd14428ec6e07.tar.gz wekan-6828ccd7f17d14f178e6742d78bdd14428ec6e07.tar.bz2 wekan-6828ccd7f17d14f178e6742d78bdd14428ec6e07.zip |
Main flow implemented
Diffstat (limited to 'client')
-rw-r--r-- | client/components/rules/rulesMain.js | 2 | ||||
-rw-r--r-- | client/components/rules/triggers/boardTriggers.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/client/components/rules/rulesMain.js b/client/components/rules/rulesMain.js index c7e10512..5a4b612a 100644 --- a/client/components/rules/rulesMain.js +++ b/client/components/rules/rulesMain.js @@ -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) { diff --git a/client/components/rules/triggers/boardTriggers.js b/client/components/rules/triggers/boardTriggers.js index 4c8594d3..08274777 100644 --- a/client/components/rules/triggers/boardTriggers.js +++ b/client/components/rules/triggers/boardTriggers.js @@ -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); }); } |