diff options
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/rules/triggers/boardTriggers.jade | 7 | ||||
-rw-r--r-- | client/components/rules/triggers/boardTriggers.js | 13 |
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); |