summaryrefslogtreecommitdiffstats
path: root/client/components/rules/ruleDetails.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/ruleDetails.js
parent30a3daa6af179009ac17b40a71bf3f9e9b1d698a (diff)
downloadwekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.tar.gz
wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.tar.bz2
wekan-25da8376ca2ee3b7bedadf924557d4d7bb6c6771.zip
Beautyfied
Diffstat (limited to 'client/components/rules/ruleDetails.js')
-rw-r--r--client/components/rules/ruleDetails.js33
1 files changed, 16 insertions, 17 deletions
diff --git a/client/components/rules/ruleDetails.js b/client/components/rules/ruleDetails.js
index 872fec2d..385b0bae 100644
--- a/client/components/rules/ruleDetails.js
+++ b/client/components/rules/ruleDetails.js
@@ -6,32 +6,31 @@ BlazeComponent.extendComponent({
},
- trigger(){
+ trigger() {
const ruleId = this.data().ruleId;
- const rule = Rules.findOne({_id: ruleId.get()});
- const trigger = Triggers.findOne({_id:rule.triggerId});
+ const rule = Rules.findOne({
+ _id: ruleId.get()
+ });
+ const trigger = Triggers.findOne({
+ _id: rule.triggerId
+ });
console.log(trigger);
return trigger.description();
},
- action(){
+ action() {
const ruleId = this.data().ruleId;
- const rule = Rules.findOne({_id: ruleId.get()});
- const action = Actions.findOne({_id:rule.actionId});
+ const rule = Rules.findOne({
+ _id: ruleId.get()
+ });
+ const action = Actions.findOne({
+ _id: rule.actionId
+ });
console.log(action);
return action.description();
},
events() {
- return [{
- }];
+ return [{}];
},
-}).register('ruleDetails');
-
-
-
-
-
-
-
-
+}).register('ruleDetails'); \ No newline at end of file