diff options
author | Ignatz <computer-freak94@gmx.de> | 2018-05-18 10:43:43 +0200 |
---|---|---|
committer | Ignatz <computer-freak94@gmx.de> | 2018-05-18 10:43:43 +0200 |
commit | 838578657da4ed46be0e32091120c7554b07c102 (patch) | |
tree | b898d0f53f896c0258bfe5a11bc6373cebc0bfbf | |
parent | d6cfac0122dc5e6819c82f73c728488e0600cb70 (diff) | |
download | wekan-838578657da4ed46be0e32091120c7554b07c102.tar.gz wekan-838578657da4ed46be0e32091120c7554b07c102.tar.bz2 wekan-838578657da4ed46be0e32091120c7554b07c102.zip |
template literals correction
-rw-r--r-- | client/components/cards/cardCustomFields.js | 2 | ||||
-rw-r--r-- | client/components/sidebar/sidebarCustomFields.js | 2 | ||||
-rw-r--r-- | models/cards.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/client/components/cards/cardCustomFields.js b/client/components/cards/cardCustomFields.js index 821ca02b..019fcab5 100644 --- a/client/components/cards/cardCustomFields.js +++ b/client/components/cards/cardCustomFields.js @@ -24,7 +24,7 @@ Template.cardCustomFieldsPopup.events({ const CardCustomField = BlazeComponent.extendComponent({ getTemplate() { - return 'cardCustomField-${this.data().definition.type}'; + return `cardCustomField-${this.data().definition.type}`; }, onCreated() { diff --git a/client/components/sidebar/sidebarCustomFields.js b/client/components/sidebar/sidebarCustomFields.js index 9fed163c..d74a5919 100644 --- a/client/components/sidebar/sidebarCustomFields.js +++ b/client/components/sidebar/sidebarCustomFields.js @@ -29,7 +29,7 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({ return this._types. map((type) => {return { value: type, - name: TAPi18n.__('custom-field-${type}'), + name: TAPi18n.__(`custom-field-${type}`), selected: type === currentType, };}); }, diff --git a/models/cards.js b/models/cards.js index d3a741bb..c77cd682 100644 --- a/models/cards.js +++ b/models/cards.js @@ -332,7 +332,7 @@ Cards.mutations({ const index = this.customFieldIndex(customFieldId); if (index > -1) { const update = {$set: {}}; - update.$set['customFields.${index}.value'] = value; + update.$set[`customFields.${index}.value`] = value; return update; } // TODO |