From 73a8fdc344014c121d6f00dbb256b66ab6904ec9 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 29 Nov 2024 13:36:48 +0000 Subject: [PATCH] DEV: Convert to native class syntax --- .../discourse/routes/user-activity-votes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/discourse/routes/user-activity-votes.js b/assets/javascripts/discourse/routes/user-activity-votes.js index 87a937b..8f4aa40 100644 --- a/assets/javascripts/discourse/routes/user-activity-votes.js +++ b/assets/javascripts/discourse/routes/user-activity-votes.js @@ -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: "", }; - }, -}); + } +}