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