Ghost/ghost/admin/app/components/gh-app.js

16 lines
359 B
JavaScript
Raw Normal View History

import $ from 'jquery';
import Component from '@ember/component';
export default Component.extend({
classNames: ['gh-app'],
showSettingsMenu: false,
didReceiveAttrs() {
this._super(...arguments);
let showSettingsMenu = this.showSettingsMenu;
$('body').toggleClass('settings-menu-expanded', showSettingsMenu);
}
});