mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-26 07:23:36 -05:00
11 lines
331 B
Text
11 lines
331 B
Text
|
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')
|
||
|
});
|