Ensure categories are always loaded

This commit is contained in:
Basti 2017-11-12 14:53:47 +01:00
parent 712b6cd5a5
commit c0dfbd5077

View File

@ -34,6 +34,14 @@ export default Route.extend({
return items; return items;
}); });
},
setupController(controller, model) {
this._super(controller, model);
if (isEmpty(this.get('storage.categories')) && this.get('storage.connected')) {
this.get('storage').fetchCategories();
}
} }
}); });