2016-11-04 11:32:12 -04:00
|
|
|
import { getOwner } from 'discourse-common/lib/get-owner';
|
|
|
|
|
2015-08-06 12:43:56 -04:00
|
|
|
export default Ember.Component.extend({
|
|
|
|
router: function() {
|
2016-11-04 11:32:12 -04:00
|
|
|
return getOwner(this).lookup('router:main');
|
2015-08-06 12:43:56 -04:00
|
|
|
}.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')
|
|
|
|
});
|