FIX: convert the route to Ember Octane to fix the dependency issue. (#25221)

The UI is randomly breaking while generating the messages menu in the user profile when we use the old class format. And it happens only when the `navigation_menu` site setting value is set to `header dropdown`. Users reported issues in some other random cases too.
This commit is contained in:
Vinoth Kannan 2024-01-11 11:52:33 +05:30 committed by GitHub
parent 59839e428f
commit cc917a1d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,12 @@ import { setTopicList } from "discourse/lib/topic-list-tracker";
import ViewingActionType from "discourse/mixins/viewing-action-type";
import DiscourseRoute from "discourse/routes/discourse";
export default DiscourseRoute.extend(ViewingActionType, {
templateName: "user-topics-list",
controllerName: "user-topics-list",
queryParams,
export default class UserTopicsListRoute extends DiscourseRoute.extend(
ViewingActionType
) {
templateName = "user-topics-list";
controllerName = "user-topics-list";
queryParams = queryParams;
setupController(controller, model) {
setTopicList(model);
@ -19,5 +20,5 @@ export default DiscourseRoute.extend(ViewingActionType, {
model,
hideCategory: false,
});
},
});
}
}