summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 17:20:45 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-21 17:20:45 +0200
commit620180981050e2db4e2fe69c968c529951a02fdc (patch)
tree61ea3cf7b9544c07714a81a1a23ea55cc0fdfaab /client/components
parent99d38f2d61527f599f3246ea5f02ec482841ab0e (diff)
downloadwekan-620180981050e2db4e2fe69c968c529951a02fdc.tar.gz
wekan-620180981050e2db4e2fe69c968c529951a02fdc.tar.bz2
wekan-620180981050e2db4e2fe69c968c529951a02fdc.zip
Added general move trigger
Diffstat (limited to 'client/components')
-rw-r--r--client/components/rules/triggers/boardTriggers.jade7
-rw-r--r--client/components/rules/triggers/boardTriggers.js13
2 files changed, 20 insertions, 0 deletions
diff --git a/client/components/rules/triggers/boardTriggers.jade b/client/components/rules/triggers/boardTriggers.jade
index 266f11f8..48b9345c 100644
--- a/client/components/rules/triggers/boardTriggers.jade
+++ b/client/components/rules/triggers/boardTriggers.jade
@@ -30,6 +30,13 @@ template(name="boardTriggers")
div.trigger-item
div.trigger-content
div.trigger-text
+ | {{_'r-when-a-card-is-moved'}}
+ div.trigger-button.js-add-gen-moved-trigger.js-goto-action
+ i.fa.fa-plus
+
+ div.trigger-item
+ div.trigger-content
+ div.trigger-text
| {{_'r-when-a-card-is'}}
div.trigger-dropdown
select(id="move-action")
diff --git a/client/components/rules/triggers/boardTriggers.js b/client/components/rules/triggers/boardTriggers.js
index e4753642..562d84a9 100644
--- a/client/components/rules/triggers/boardTriggers.js
+++ b/client/components/rules/triggers/boardTriggers.js
@@ -76,6 +76,19 @@ BlazeComponent.extendComponent({
});
}
},
+ 'click .js-add-gen-moved-trigger' (event){
+ const datas = this.data();
+ const desc = Utils.getTriggerActionDesc(event, this);
+ const boardId = Session.get('currentBoard');
+
+ datas.triggerVar.set({
+ activityType: 'moveCard',
+ boardId,
+ 'listName':'*',
+ 'oldListName': '*',
+ desc,
+ });
+ },
'click .js-add-arc-trigger' (event) {
const datas = this.data();
const desc = Utils.getTriggerActionDesc(event, this);