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