DEV: Modernize store and messageBus injections in Glimmer base class (#17763)
These were overlooked when `store` and `messageBus` were converted to true services
This commit is contained in:
parent
d2ddb140dd
commit
89518f3155
|
@ -18,14 +18,9 @@ export default class DiscourseGlimmerComponent extends GlimmerComponent {
|
||||||
@service keyValueStore;
|
@service keyValueStore;
|
||||||
@service pmTopicTrackingState;
|
@service pmTopicTrackingState;
|
||||||
@service siteSettings;
|
@service siteSettings;
|
||||||
|
@service messageBus;
|
||||||
@service currentUser;
|
@service currentUser;
|
||||||
|
|
||||||
@cached
|
|
||||||
get messageBus() {
|
|
||||||
const applicationInstance = getOwner(this);
|
|
||||||
return applicationInstance.lookup("message-bus:main");
|
|
||||||
}
|
|
||||||
|
|
||||||
@cached
|
@cached
|
||||||
get topicTrackingState() {
|
get topicTrackingState() {
|
||||||
const applicationInstance = getOwner(this);
|
const applicationInstance = getOwner(this);
|
||||||
|
@ -38,12 +33,6 @@ export default class DiscourseGlimmerComponent extends GlimmerComponent {
|
||||||
return applicationInstance.lookup("site:main");
|
return applicationInstance.lookup("site:main");
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached
|
|
||||||
get store() {
|
|
||||||
const applicationInstance = getOwner(this);
|
|
||||||
return applicationInstance.lookup("store:main");
|
|
||||||
}
|
|
||||||
|
|
||||||
@cached
|
@cached
|
||||||
get session() {
|
get session() {
|
||||||
const applicationInstance = getOwner(this);
|
const applicationInstance = getOwner(this);
|
||||||
|
|
Loading…
Reference in New Issue