diff --git a/app/assets/javascripts/discourse/app/components/featured-topic.js b/app/assets/javascripts/discourse/app/components/featured-topic.js index ea3edbc6e9d..0d9b695c0f9 100644 --- a/app/assets/javascripts/discourse/app/components/featured-topic.js +++ b/app/assets/javascripts/discourse/app/components/featured-topic.js @@ -1,10 +1,13 @@ import Component from "@ember/component"; +import { + attributeBindings, + classNameBindings, +} from "@ember-decorators/component"; import $ from "jquery"; -export default Component.extend({ - classNameBindings: [":featured-topic"], - attributeBindings: ["topic.id:data-topic-id"], - +@classNameBindings(":featured-topic") +@attributeBindings("topic.id:data-topic-id") +export default class FeaturedTopic extends Component { click(e) { if (e.target.closest(".last-posted-at")) { this.appEvents.trigger("topic-entrance:show", { @@ -13,5 +16,5 @@ export default Component.extend({ }); return false; } - }, -}); + } +} diff --git a/app/assets/javascripts/discourse/app/components/flag-action-type.hbs b/app/assets/javascripts/discourse/app/components/flag-action-type.hbs index 96a8b5c6b7e..c7452421f68 100644 --- a/app/assets/javascripts/discourse/app/components/flag-action-type.hbs +++ b/app/assets/javascripts/discourse/app/components/flag-action-type.hbs @@ -5,7 +5,7 @@