DEV: Convert to native class syntax (#320)

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

View File

@ -1,9 +1,9 @@
import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
import I18n from "I18n";
export default UserActivityStreamRoute.extend({
userActionType: 15,
noContentHelpKey: "solved.no_solutions",
export default class UserActivitySolved extends UserActivityStreamRoute {
userActionType = 15;
noContentHelpKey = "solved.no_solutions";
emptyState() {
const user = this.modelFor("user");
@ -20,5 +20,5 @@ export default UserActivityStreamRoute.extend({
}
return { title, body };
},
});
}
}