DEV: message bus is always present (#18147)
This commit is contained in:
parent
564787d1dd
commit
bbf00fd087
|
@ -12,10 +12,6 @@ export default {
|
|||
site.set("banner", banner);
|
||||
|
||||
const messageBus = container.lookup("service:message-bus");
|
||||
if (!messageBus) {
|
||||
return;
|
||||
}
|
||||
|
||||
messageBus.subscribe("/site/banner", function (ban) {
|
||||
site.set("banner", EmberObject.create(ban || {}));
|
||||
});
|
||||
|
|
|
@ -11,11 +11,6 @@ export default {
|
|||
|
||||
initialize(container) {
|
||||
const messageBus = container.lookup("service:message-bus");
|
||||
|
||||
if (!messageBus) {
|
||||
return;
|
||||
}
|
||||
|
||||
messageBus.subscribe("/logout", function () {
|
||||
if (!_showingLogout) {
|
||||
_showingLogout = true;
|
||||
|
|
|
@ -5,10 +5,6 @@ export default {
|
|||
|
||||
initialize(container) {
|
||||
const messageBus = container.lookup("service:message-bus");
|
||||
if (!messageBus) {
|
||||
return;
|
||||
}
|
||||
|
||||
const site = container.lookup("service:site");
|
||||
messageBus.subscribe("/site/read-only", function (enabled) {
|
||||
site.set("isReadOnly", enabled);
|
||||
|
|
Loading…
Reference in New Issue