From f6d63b7299750a643b37e2c05b6472b7e4f3a3bd Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 29 Nov 2024 15:42:42 +0000 Subject: [PATCH] DEV: Convert to native class syntax (#320) --- .../discourse/routes/user-activity-solved.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/discourse/routes/user-activity-solved.js b/assets/javascripts/discourse/routes/user-activity-solved.js index d30ebd0..fa4a674 100644 --- a/assets/javascripts/discourse/routes/user-activity-solved.js +++ b/assets/javascripts/discourse/routes/user-activity-solved.js @@ -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 }; - }, -}); + } +}