mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 14:08:31 -04:00
Fix: Translate and add colors to IFTTT Rules dropdown."
This fixes commit 44e4df2492
.
When the label has a name, not setting `translatedname` results in a
blank item in the IFTTT label trigger.
This commit is contained in:
parent
6fbadbe5bc
commit
ba9f0ca672
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue