template literals correction

This commit is contained in:
Ignatz 2018-05-18 10:43:43 +02:00
parent d6cfac0122
commit 838578657d
3 changed files with 3 additions and 3 deletions

View file

@ -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() {

View file

@ -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,
};}); };});
}, },

View file

@ -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