Files
discourse/app/assets/javascripts/admin/components/customize-link.js.es6
T

13 lines
391 B
JavaScript
Raw Normal View History

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')
});