Refactor Customizations to have deeper URLs

This commit is contained in:
Robin Ward
2015-08-06 12:43:56 -04:00
parent 92b2d8c247
commit 0932e82508
25 changed files with 294 additions and 378 deletions
@@ -0,0 +1,10 @@
export default Ember.Component.extend({
router: function() {
return this.container.lookup('router:main');
}.property(),
active: function() {
const id = this.get('customization.id');
return this.get('router.url').indexOf(`/customize/css_html/${id}/css`) !== -1;
}.property('router.url', 'customization.id')
});