open-consul/ui-v2/app/forms/policy.js
John Cowen 52a62f2b8d UI: New ACLs (#4789)
UI to accompany the new ACLs APIs
2018-10-19 08:45:05 -07:00

11 lines
319 B
JavaScript

import validations from 'consul-ui/validations/policy';
import builderFactory from 'consul-ui/utils/form/builder';
const builder = builderFactory();
export default function(name = 'policy', v = validations, form = builder) {
return form(name, {
Datacenters: {
type: 'array',
},
}).setValidators(v);
}