summaryrefslogtreecommitdiffstats
path: root/client/components/rules/ruleDetails.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-08 00:26:25 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-08 00:26:25 +0300
commit9cd980d9e6283ed15c24a01b4f7ed2bc06d6f54f (patch)
treed5a87bc2ceb3733cadcf05712fc123495acb6886 /client/components/rules/ruleDetails.js
parent4c6c6ffb164027c5a5f29d213be9858c23efd3bf (diff)
parentd516ecb20ceaa21d5687ae093317473774843510 (diff)
downloadwekan-9cd980d9e6283ed15c24a01b4f7ed2bc06d6f54f.tar.gz
wekan-9cd980d9e6283ed15c24a01b4f7ed2bc06d6f54f.tar.bz2
wekan-9cd980d9e6283ed15c24a01b4f7ed2bc06d6f54f.zip
Merge branch 'Angtrim-feature-rules' into edge
Closes #1912
Diffstat (limited to 'client/components/rules/ruleDetails.js')
-rw-r--r--client/components/rules/ruleDetails.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/components/rules/ruleDetails.js b/client/components/rules/ruleDetails.js
index 386b2b48..17c86dc3 100644
--- a/client/components/rules/ruleDetails.js
+++ b/client/components/rules/ruleDetails.js
@@ -14,7 +14,9 @@ BlazeComponent.extendComponent({
const trigger = Triggers.findOne({
_id: rule.triggerId,
});
- return trigger.description();
+ const desc = trigger.description();
+ const upperdesc = desc.charAt(0).toUpperCase() + desc.substr(1);
+ return upperdesc;
},
action() {
const ruleId = this.data().ruleId;
@@ -24,7 +26,9 @@ BlazeComponent.extendComponent({
const action = Actions.findOne({
_id: rule.actionId,
});
- return action.description();
+ const desc = action.description();
+ const upperdesc = desc.charAt(0).toUpperCase() + desc.substr(1);
+ return upperdesc;
},
events() {