mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 08:54:36 +03:00
fb239054a0
follow up from #95 - converts components to use ember-cli-shims
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
import $ from 'jquery';
|
|
import Component from 'ember-component';
|
|
import observer from 'ember-metal/observer';
|
|
|
|
export default Component.extend({
|
|
classNames: ['gh-app'],
|
|
|
|
showSettingsMenu: false,
|
|
|
|
toggleSettingsMenuBodyClass: observer('showSettingsMenu', function () {
|
|
let showSettingsMenu = this.get('showSettingsMenu');
|
|
|
|
$('body').toggleClass('settings-menu-expanded', showSettingsMenu);
|
|
})
|
|
});
|