DEV: Convert to native class syntax (#219)
This commit is contained in:
parent
cc24f178bc
commit
52349b9d1b
|
@ -2,8 +2,8 @@ import UserAction from "discourse/models/user-action";
|
||||||
import UserTopicListRoute from "discourse/routes/user-topic-list";
|
import UserTopicListRoute from "discourse/routes/user-topic-list";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default UserTopicListRoute.extend({
|
export default class UserActivityVotes extends UserTopicListRoute {
|
||||||
userActionType: UserAction.TYPES.topics,
|
userActionType = UserAction.TYPES.topics;
|
||||||
|
|
||||||
model() {
|
model() {
|
||||||
return this.store
|
return this.store
|
||||||
|
@ -15,7 +15,7 @@ export default UserTopicListRoute.extend({
|
||||||
model.set("emptyState", this.emptyState());
|
model.set("emptyState", this.emptyState());
|
||||||
return model;
|
return model;
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
|
|
||||||
emptyState() {
|
emptyState() {
|
||||||
const user = this.modelFor("user");
|
const user = this.modelFor("user");
|
||||||
|
@ -29,5 +29,5 @@ export default UserTopicListRoute.extend({
|
||||||
title,
|
title,
|
||||||
body: "",
|
body: "",
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
|
Loading…
Reference in New Issue