Plugin Outlets need their arguments to be explicit

This commit is contained in:
Robin Ward
2016-12-09 13:51:26 -05:00
parent a808bcb0b8
commit 2efe4900cf
36 changed files with 272 additions and 196 deletions

View File

@ -137,12 +137,21 @@ export function buildResolver(baseName) {
return this._super(parsedName);
},
findConnectorTemplate(parsedName) {
const full = parsedName.fullNameWithoutType.replace('components/', '');
if (full.indexOf('connectors') === 0) {
return Ember.TEMPLATES[`javascripts/${full}`];
}
},
resolveTemplate(parsedName) {
return this.findPluginMobileTemplate(parsedName) ||
this.findPluginTemplate(parsedName) ||
this.findMobileTemplate(parsedName) ||
this.findTemplate(parsedName) ||
this.findLoadingTemplate(parsedName) ||
this.findConnectorTemplate(parsedName) ||
Ember.TEMPLATES.not_found;
},