mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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 ViewingActionType from "discourse/mixins/viewing-action-type";
|
||||||
import DiscourseRoute from "discourse/routes/discourse";
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
|
|
||||||
export default DiscourseRoute.extend(ViewingActionType, {
|
export default class UserTopicsListRoute extends DiscourseRoute.extend(
|
||||||
templateName: "user-topics-list",
|
ViewingActionType
|
||||||
controllerName: "user-topics-list",
|
) {
|
||||||
|
templateName = "user-topics-list";
|
||||||
queryParams,
|
controllerName = "user-topics-list";
|
||||||
|
queryParams = queryParams;
|
||||||
|
|
||||||
setupController(controller, model) {
|
setupController(controller, model) {
|
||||||
setTopicList(model);
|
setTopicList(model);
|
||||||
@ -19,5 +20,5 @@ export default DiscourseRoute.extend(ViewingActionType, {
|
|||||||
model,
|
model,
|
||||||
hideCategory: false,
|
hideCategory: false,
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user