summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-01-22 16:45:29 +0200
committerGitHub <noreply@github.com>2019-01-22 16:45:29 +0200
commit6e28dec712a6fac74a42fa1b5a071e40390547fe (patch)
treeeacc534069d691552c83892e6af5cd016ad58f57
parent7261ccdc9074b443adb36e9365ba512eb74ffdfe (diff)
parentba9f0ca6720ff1bf2e775ae8b71ff82a23bb37e4 (diff)
downloadwekan-6e28dec712a6fac74a42fa1b5a071e40390547fe.tar.gz
wekan-6e28dec712a6fac74a42fa1b5a071e40390547fe.tar.bz2
wekan-6e28dec712a6fac74a42fa1b5a071e40390547fe.zip
Merge pull request #2119 from bentiss/fix-color-translation
Fix: Translate and add colors to IFTTT Rules dropdown."
-rw-r--r--client/components/rules/triggers/cardTriggers.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/components/rules/triggers/cardTriggers.js b/client/components/rules/triggers/cardTriggers.js
index ca282fa7..82b21d61 100644
--- a/client/components/rules/triggers/cardTriggers.js
+++ b/client/components/rules/triggers/cardTriggers.js
@@ -8,6 +8,8 @@ BlazeComponent.extendComponent({
if (labels[i].name === '' || labels[i].name === undefined) {
labels[i].name = labels[i].color;
labels[i].translatedname = `${TAPi18n.__(`color-${ labels[i].color}`)}`;
+ } else {
+ labels[i].translatedname = labels[i].name;
}
}
return labels;