diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-01-22 15:22:31 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-01-22 15:22:31 +0200 |
commit | 44e4df2492b95226f1297e7f556d61b1afaab714 (patch) | |
tree | 7538572b2094f80e87f16af29919e5878d9554c2 /client/components/rules/triggers/cardTriggers.js | |
parent | d8482b533a3d525071d5733df9e38629da5b8342 (diff) | |
download | wekan-44e4df2492b95226f1297e7f556d61b1afaab714.tar.gz wekan-44e4df2492b95226f1297e7f556d61b1afaab714.tar.bz2 wekan-44e4df2492b95226f1297e7f556d61b1afaab714.zip |
- Translate and add colors to IFTTT Rules dropdown.
Thanks to xet7 !
Diffstat (limited to 'client/components/rules/triggers/cardTriggers.js')
-rw-r--r-- | client/components/rules/triggers/cardTriggers.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/components/rules/triggers/cardTriggers.js b/client/components/rules/triggers/cardTriggers.js index 2303a85b..ca282fa7 100644 --- a/client/components/rules/triggers/cardTriggers.js +++ b/client/components/rules/triggers/cardTriggers.js @@ -6,7 +6,8 @@ BlazeComponent.extendComponent({ const labels = Boards.findOne(Session.get('currentBoard')).labels; for (let i = 0; i < labels.length; i++) { if (labels[i].name === '' || labels[i].name === undefined) { - labels[i].name = labels[i].color.toUpperCase(); + labels[i].name = labels[i].color; + labels[i].translatedname = `${TAPi18n.__(`color-${ labels[i].color}`)}`; } } return labels; |