mirror of https://github.com/hashicorp/consul
17 lines
403 B
JavaScript
17 lines
403 B
JavaScript
|
export default (submitable, cancelable, radiogroup, text) => (
|
||
|
scope = '[data-test-policy-form]'
|
||
|
) => {
|
||
|
return {
|
||
|
// this should probably be settable
|
||
|
resetScope: true,
|
||
|
scope: scope,
|
||
|
prefix: 'policy',
|
||
|
...submitable(),
|
||
|
...cancelable(),
|
||
|
...radiogroup('template', ['', 'service-identity'], 'policy'),
|
||
|
rules: {
|
||
|
error: text('[data-test-rules] strong'),
|
||
|
},
|
||
|
};
|
||
|
};
|