diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-10-07 17:55:24 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-10-07 17:55:24 +0200 |
commit | 506b95107c9c124d07f36be295487b1454107a86 (patch) | |
tree | be83cdbe1c13fb148aa0b4b64199f41bc0713938 /client | |
parent | 02422cc8f2408d5de913ccef05442b20bb31fe08 (diff) | |
download | wekan-506b95107c9c124d07f36be295487b1454107a86.tar.gz wekan-506b95107c9c124d07f36be295487b1454107a86.tar.bz2 wekan-506b95107c9c124d07f36be295487b1454107a86.zip |
Fixed uppercase rules details
Diffstat (limited to 'client')
-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() { |