mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
template literals correction
This commit is contained in:
parent
d6cfac0122
commit
838578657d
3 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ Template.cardCustomFieldsPopup.events({
|
||||||
const CardCustomField = BlazeComponent.extendComponent({
|
const CardCustomField = BlazeComponent.extendComponent({
|
||||||
|
|
||||||
getTemplate() {
|
getTemplate() {
|
||||||
return 'cardCustomField-${this.data().definition.type}';
|
return `cardCustomField-${this.data().definition.type}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
onCreated() {
|
onCreated() {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({
|
||||||
return this._types.
|
return this._types.
|
||||||
map((type) => {return {
|
map((type) => {return {
|
||||||
value: type,
|
value: type,
|
||||||
name: TAPi18n.__('custom-field-${type}'),
|
name: TAPi18n.__(`custom-field-${type}`),
|
||||||
selected: type === currentType,
|
selected: type === currentType,
|
||||||
};});
|
};});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -332,7 +332,7 @@ Cards.mutations({
|
||||||
const index = this.customFieldIndex(customFieldId);
|
const index = this.customFieldIndex(customFieldId);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
const update = {$set: {}};
|
const update = {$set: {}};
|
||||||
update.$set['customFields.${index}.value'] = value;
|
update.$set[`customFields.${index}.value`] = value;
|
||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
// TODO
|
// TODO
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue