mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:34:18 +08:00
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 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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user