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:
David Taylor 2022-08-02 23:22:52 +01:00 committed by GitHub
parent d2ddb140dd
commit 89518f3155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -18,14 +18,9 @@ export default class DiscourseGlimmerComponent extends GlimmerComponent {
@service keyValueStore;
@service pmTopicTrackingState;
@service siteSettings;
@service messageBus;
@service currentUser;
@cached
get messageBus() {
const applicationInstance = getOwner(this);
return applicationInstance.lookup("message-bus:main");
}
@cached
get topicTrackingState() {
const applicationInstance = getOwner(this);
@ -38,12 +33,6 @@ export default class DiscourseGlimmerComponent extends GlimmerComponent {
return applicationInstance.lookup("site:main");
}
@cached
get store() {
const applicationInstance = getOwner(this);
return applicationInstance.lookup("store:main");
}
@cached
get session() {
const applicationInstance = getOwner(this);