summaryrefslogtreecommitdiffstats
path: root/client/components/rules/rulesMain.js
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-14 17:39:37 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-09-14 17:39:37 +0200
commit25da8376ca2ee3b7bedadf924557d4d7bb6c6771 (patch)
treea96f00a3a050ea90385e6cd56cf15516cf4e437e /client/components/rules/rulesMain.js
parent30a3daa6af179009ac17b40a71bf3f9e9b1d698a (diff)
downloadwekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.tar.gz
wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.tar.bz2
wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.zip
Beautyfied
Diffstat (limited to 'client/components/rules/rulesMain.js')
-rw-r--r--client/components/rules/rulesMain.js72
1 files changed, 32 insertions, 40 deletions
diff --git a/client/components/rules/rulesMain.js b/client/components/rules/rulesMain.js
index d16b9a41..e4cac03d 100644
--- a/client/components/rules/rulesMain.js
+++ b/client/components/rules/rulesMain.js
@@ -22,45 +22,37 @@ BlazeComponent.extendComponent({
},
events() {
- 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) {
- event.preventDefault();
- const ruleTitle = this.find('#ruleTitle').value;
- this.find('#ruleTitle').value = "";
- this.ruleName.set(ruleTitle)
- this.setTrigger();
- },
- 'click .js-goto-action'(event) {
- event.preventDefault();
- this.setAction();
- },
- 'click .js-goto-rules'(event) {
- event.preventDefault();
- this.setRulesList();
- },
- 'click .js-goto-details'(event) {
- event.preventDefault();
- const rule = this.currentData();
- this.ruleId.set(rule._id)
- this.setRuleDetails();
- },
-
-
- }];
+ 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) {
+ event.preventDefault();
+ const ruleTitle = this.find('#ruleTitle').value;
+ this.find('#ruleTitle').value = "";
+ this.ruleName.set(ruleTitle)
+ this.setTrigger();
+ },
+ 'click .js-goto-action' (event) {
+ event.preventDefault();
+ this.setAction();
+ },
+ 'click .js-goto-rules' (event) {
+ event.preventDefault();
+ this.setRulesList();
+ },
+ 'click .js-goto-details' (event) {
+ event.preventDefault();
+ const rule = this.currentData();
+ this.ruleId.set(rule._id)
+ this.setRuleDetails();
+ },
+
+ }];
},
-}).register('rulesMain');
-
-
-
-
-
-
-
-
+}).register('rulesMain'); \ No newline at end of file