DEV: Convert to native class syntax (#219)

This commit is contained in:
David Taylor 2024-11-29 15:43:03 +00:00 committed by GitHub
parent cc24f178bc
commit 52349b9d1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@ import UserAction from "discourse/models/user-action";
import UserTopicListRoute from "discourse/routes/user-topic-list"; import UserTopicListRoute from "discourse/routes/user-topic-list";
import I18n from "I18n"; import I18n from "I18n";
export default UserTopicListRoute.extend({ export default class UserActivityVotes extends UserTopicListRoute {
userActionType: UserAction.TYPES.topics, userActionType = UserAction.TYPES.topics;
model() { model() {
return this.store return this.store
@ -15,7 +15,7 @@ export default UserTopicListRoute.extend({
model.set("emptyState", this.emptyState()); model.set("emptyState", this.emptyState());
return model; return model;
}); });
}, }
emptyState() { emptyState() {
const user = this.modelFor("user"); const user = this.modelFor("user");
@ -29,5 +29,5 @@ export default UserTopicListRoute.extend({
title, title,
body: "", body: "",
}; };
}, }
}); }