2019-05-01 18:09:29 +00:00
|
|
|
import Service, { inject as service } from '@ember/service';
|
2018-10-19 15:17:02 +00:00
|
|
|
import builderFactory from 'consul-ui/utils/form/builder';
|
|
|
|
const builder = builderFactory();
|
2020-11-09 09:25:35 +00:00
|
|
|
export default class FormService extends Service {
|
2018-10-19 15:17:02 +00:00
|
|
|
// a `get` method is added via the form initializer
|
|
|
|
// see initializers/form.js
|
2019-05-01 18:09:29 +00:00
|
|
|
|
|
|
|
// TODO: Temporarily add these here until something else needs
|
|
|
|
// dynamic repos
|
2020-11-09 09:25:35 +00:00
|
|
|
@service('repository/role')
|
|
|
|
role;
|
|
|
|
|
|
|
|
@service('repository/policy')
|
|
|
|
policy;
|
|
|
|
|
2019-05-01 18:09:29 +00:00
|
|
|
//
|
2020-11-09 09:25:35 +00:00
|
|
|
init() {
|
|
|
|
super.init(...arguments);
|
2019-05-01 18:09:29 +00:00
|
|
|
this.forms = [];
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build(obj, name) {
|
2018-10-19 15:17:02 +00:00
|
|
|
return builder(...arguments);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
form() {}
|
|
|
|
}
|