FIX: bug with navigation to the activity/topics and the activity/read pages (#14182)

This commit is contained in:
Andrei Prigorshnev 2021-09-02 19:49:26 +04:00 committed by GitHub
parent 09764291b1
commit 074bce77f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import UserAction from "discourse/models/user-action";
import UserTopicListRoute from "discourse/routes/user-topic-list";
import { action } from "@ember/object";
export default UserTopicListRoute.extend({
userActionType: UserAction.TYPES.topics,
@ -9,4 +10,9 @@ export default UserTopicListRoute.extend({
filter: "read",
});
},
@action
refresh() {
this.refresh();
},
});

View File

@ -1,5 +1,6 @@
import UserAction from "discourse/models/user-action";
import UserTopicListRoute from "discourse/routes/user-topic-list";
import { action } from "@ember/object";
export default UserTopicListRoute.extend({
userActionType: UserAction.TYPES.topics,
@ -10,4 +11,9 @@ export default UserTopicListRoute.extend({
"topics/created-by/" + this.modelFor("user").get("username_lower"),
});
},
@action
refresh() {
this.refresh();
},
});