DEV: Update welcome-topic-banner to use @glimmer/component (#17876)

Now that all of our singletons have been converted to true Ember Services, we can remove our custom `discourse/component/glimmer` superclass and use explicit injection
This commit is contained in:
David Taylor 2022-08-11 18:47:15 +01:00 committed by GitHub
parent c789c689c2
commit cef264ab1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,14 @@
import GlimmerComponent from "discourse/components/glimmer";
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { getOwner } from "discourse-common/lib/get-owner";
import Topic from "discourse/models/topic";
import Composer from "discourse/models/composer";
import { inject as service } from "@ember/service";
export default class WelcomeTopicBanner extends Component {
@service siteSettings;
@service store;
export default class WelcomeTopicBanner extends GlimmerComponent {
@action
editWelcomeTopic() {
const topicController = getOwner(this).lookup("controller:topic");