get logo_url with one request
This commit is contained in:
parent
cc2093f32b
commit
ee4beca12a
|
@ -6,8 +6,7 @@ export default Em.Component.extend({
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
render(buffer) {
|
render(buffer) {
|
||||||
const category = this.get('category');
|
const categoryLogo = this.get('category.logo_url');
|
||||||
const categoryLogo = category.get('logo_url');
|
|
||||||
buffer.push(`<img class="category-logo" src='${categoryLogo}'/>`);
|
buffer.push(`<img class="category-logo" src='${categoryLogo}'/>`);
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Reference in New Issue