Skip to content

Commit

Permalink
FIX: bug with navigation to the activity/topics and the activity/read…
Browse files Browse the repository at this point in the history
… pages (#14182)
  • Loading branch information
AndrewPrigorshnev committed Sep 2, 2021
1 parent 0976429 commit 074bce7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -9,4 +10,9 @@ export default UserTopicListRoute.extend({
filter: "read",
});
},

@action
refresh() {
this.refresh();
},
});
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -10,4 +11,9 @@ export default UserTopicListRoute.extend({
"topics/created-by/" + this.modelFor("user").get("username_lower"),
});
},

@action
refresh() {
this.refresh();
},
});

0 comments on commit 074bce7

Please sign in to comment.