Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Convert to native class syntax #219

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions assets/javascripts/discourse/routes/user-activity-votes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import UserAction from "discourse/models/user-action";
import UserTopicListRoute from "discourse/routes/user-topic-list";
import I18n from "I18n";

export default UserTopicListRoute.extend({
userActionType: UserAction.TYPES.topics,
export default class UserActivityVotes extends UserTopicListRoute {
userActionType = UserAction.TYPES.topics;

model() {
return this.store
Expand All @@ -15,7 +15,7 @@ export default UserTopicListRoute.extend({
model.set("emptyState", this.emptyState());
return model;
});
},
}

emptyState() {
const user = this.modelFor("user");
Expand All @@ -29,5 +29,5 @@ export default UserTopicListRoute.extend({
title,
body: "",
};
},
});
}
}