some cleanup thanks to eviltrout
This commit is contained in:
parent
5c923fef58
commit
bc31d25132
|
@ -7,5 +7,6 @@ export default Ember.Component.extend({
|
||||||
@computed('categories.[].uploaded_logo.url')
|
@computed('categories.[].uploaded_logo.url')
|
||||||
anyLogos() {
|
anyLogos() {
|
||||||
return this.get("categories").any((c) => { return !Ember.isEmpty(c.get('uploaded_logo.url')); });
|
return this.get("categories").any((c) => { return !Ember.isEmpty(c.get('uploaded_logo.url')); });
|
||||||
|
return this.get("categories").any(c => !Ember.isEmpty(c.get('uploaded_logo.url')));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{{#if categories}}
|
|
||||||
{{#each categories as |c|}}
|
{{#each categories as |c|}}
|
||||||
<div class='category-box'>
|
<div class='category-box'>
|
||||||
<a href={{c.url}}>
|
<a href={{c.url}}>
|
||||||
|
@ -15,4 +14,3 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
|
||||||
|
|
Loading…
Reference in New Issue