You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
591 B

import Component from '@ember/component';
import { scheduleOnce } from "@ember/runloop";
export default Component.extend({
classNames: 'category-name-header',
didInsertElement() {
scheduleOnce('afterRender', () => {
let $el = $(this.element);
$el.appendTo('section.category-heading');
if (this.category.uploaded_logo) {
$('section.category-heading').addClass('has-logo');
}
$('section.category-heading .category-name-header, section.category-heading p').wrapAll('<div class="category-heading-details"></div>');
});
}
})