0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00

Added message bus to wizard side

Dieser Commit ist enthalten in:
fzngagan 2020-09-24 17:34:32 +05:30
Ursprung 662c7432ef
Commit 3fd3900cea
2 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -40,9 +40,12 @@
//= require discourse/app/lib/load-oneboxes
//= require discourse/app/mixins/singleton
//= require discourse/app/mixins/upload
//= require discourse/app/adapters/rest
//= require message-bus
//= require discourse/app/models/login-method
//= require discourse/app/models/permission-type
//= require discourse/app/models/archetype

Datei anzeigen

@ -28,7 +28,7 @@ export default {
const RestAdapter = requirejs("discourse/adapters/rest").default;
const Session = requirejs("discourse/models/session").default;
const setDefaultOwner = requirejs("discourse-common/lib/get-owner").setDefaultOwner;
const messageBus = requirejs('message-bus-client').default;
const container = app.__container__;
Discourse.Model = EmberObject.extend();
Discourse.__container__ = container;
@ -63,6 +63,9 @@ export default {
createHelperContext({ siteSettings });
targets.forEach(t => app.inject(t, "siteSettings", "site-settings:main"));
app.register("message-bus:main", messageBus, { instantiate: false });
targets.forEach(t => app.inject(t, "messageBus", "message-bus:main"));
app.register("service:store", Store);
targets.forEach(t => app.inject(t, "store", "service:store"));
targets.forEach(t => app.inject(t, "appEvents", "service:app-events"));