2019-10-22 21:46:10 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2014-09-25 23:32:08 +08:00
|
|
|
import UserField from "admin/models/user-field";
|
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
export default class AdminUserFieldsRoute extends DiscourseRoute {
|
2021-11-13 21:01:55 +08:00
|
|
|
model() {
|
2015-07-31 02:52:53 +08:00
|
|
|
return this.store.findAll("user-field");
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
2014-09-25 23:32:08 +08:00
|
|
|
|
2021-11-13 21:01:55 +08:00
|
|
|
setupController(controller, model) {
|
2015-07-31 02:52:53 +08:00
|
|
|
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
|
|
|
}
|