mirror of https://github.com/hashicorp/consul
12 lines
309 B
JavaScript
12 lines
309 B
JavaScript
|
export default (submitable, cancelable, policySelector) => () => {
|
||
|
return {
|
||
|
// this should probably be settable
|
||
|
resetScope: true,
|
||
|
scope: '[data-test-role-form]',
|
||
|
prefix: 'role',
|
||
|
...submitable(),
|
||
|
...cancelable(),
|
||
|
policies: policySelector('', '[data-test-create-policy]'),
|
||
|
};
|
||
|
};
|