Use dashed names for all templates when using `{{render}}` for future
Ember compatibility
This commit is contained in:
parent
22fd7fb07d
commit
46d8db3d70
|
@ -117,7 +117,7 @@ export default Ember.DefaultResolver.extend({
|
|||
|
||||
findUnderscoredTemplate: function(parsedName) {
|
||||
var decamelized = parsedName.fullNameWithoutType.decamelize();
|
||||
var underscored = decamelized.replace("-", "_");
|
||||
var underscored = decamelized.replace(/\-/g, "_");
|
||||
return Ember.TEMPLATES[underscored];
|
||||
},
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
{{!-- THIS IS AN EMPTY TEMPLATE THAT NEEDS TO BE OVERWRITTEN --}}
|
||||
{{log wat}}
|
|
@ -58,7 +58,7 @@
|
|||
{{#if model.archetype.hasOptions}}
|
||||
<button class='btn' {{action showOptions}}>{{i18n topic.options}}</button>
|
||||
{{/if}}
|
||||
{{render "additionalComposerButtons" model}}
|
||||
{{render "additional-composer-buttons" model}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -153,5 +153,5 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if currentUser.canManageTopic}}
|
||||
{{render "topicAdminMenu" content}}
|
||||
{{render "topic-admin-menu" content}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue