summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-22 15:32:40 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-22 15:40:54 +0100
commitba9f0ca6720ff1bf2e775ae8b71ff82a23bb37e4 (patch)
treeb766d3c2294f3aa4ed367df150f4561c1472fd0b /client
parent6fbadbe5bce90fb3a67857b37d09fccc281744a2 (diff)
downloadwekan-ba9f0ca6720ff1bf2e775ae8b71ff82a23bb37e4.tar.gz
wekan-ba9f0ca6720ff1bf2e775ae8b71ff82a23bb37e4.tar.bz2
wekan-ba9f0ca6720ff1bf2e775ae8b71ff82a23bb37e4.zip
Fix: Translate and add colors to IFTTT Rules dropdown."
This fixes commit 44e4df2492b95226f1297e7f556d61b1afaab714. When the label has a name, not setting `translatedname` results in a blank item in the IFTTT label trigger.
Diffstat (limited to 'client')
-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;