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 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
@ -15,7 +15,7 @@ export default UserTopicListRoute.extend({
model.set("emptyState", this.emptyState());
return model;
});
},
}
emptyState() {
const user = this.modelFor("user");
@ -29,5 +29,5 @@ export default UserTopicListRoute.extend({
title,
body: "",
};
},
});
}
}