Skip to content

Commit

Permalink
DEV: Convert to native class syntax (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Nov 29, 2024
1 parent cc24f17 commit 52349b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/javascripts/discourse/routes/user-activity-votes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,7 +15,7 @@ export default UserTopicListRoute.extend({
model.set("emptyState", this.emptyState());
return model;
});
},
}

emptyState() {
const user = this.modelFor("user");
Expand All @@ -29,5 +29,5 @@ export default UserTopicListRoute.extend({
title,
body: "",
};
},
});
}
}

0 comments on commit 52349b9

Please sign in to comment.