mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:13:25 +08:00
Split hamburger-menu
out into menu-panel
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import AppEvents from 'discourse/lib/app-events';
|
||||
import createStore from 'helpers/create-store';
|
||||
|
||||
export default function(name, opts) {
|
||||
@ -8,8 +9,12 @@ export default function(name, opts) {
|
||||
const store = createStore();
|
||||
opts.setup.call(this, store);
|
||||
}
|
||||
const appEvents = AppEvents.create();
|
||||
|
||||
this.container.register('site-settings:main', Discourse.SiteSettings, { instantiate: false });
|
||||
this.container.register('app-events:main', appEvents, { instantiate: false });
|
||||
this.container.injection('component', 'siteSettings', 'site-settings:main');
|
||||
this.container.injection('component', 'appEvents', 'app-events:main');
|
||||
|
||||
andThen(() => {
|
||||
this.render(opts.template);
|
||||
|
Reference in New Issue
Block a user