mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 01:52:45 +08:00
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:
parent
59839e428f
commit
cc917a1d7f
|
@ -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,
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user