diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-10-08 00:26:25 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-10-08 00:26:25 +0300 |
commit | 9cd980d9e6283ed15c24a01b4f7ed2bc06d6f54f (patch) | |
tree | d5a87bc2ceb3733cadcf05712fc123495acb6886 /client/components/rules/ruleDetails.js | |
parent | 4c6c6ffb164027c5a5f29d213be9858c23efd3bf (diff) | |
parent | d516ecb20ceaa21d5687ae093317473774843510 (diff) | |
download | wekan-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.js | 8 |
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() { |