mirror of https://github.com/hashicorp/consul
18 lines
398 B
JavaScript
18 lines
398 B
JavaScript
|
export default function(
|
||
|
visitable,
|
||
|
submitable,
|
||
|
deletable,
|
||
|
cancelable,
|
||
|
policySelector,
|
||
|
roleSelector
|
||
|
) {
|
||
|
return {
|
||
|
visit: visitable(['/:dc/namespaces/:namespace', '/:dc/namespaces/create']),
|
||
|
...submitable({}, 'main form > div'),
|
||
|
...cancelable({}, 'main form > div'),
|
||
|
...deletable({}, 'main form > div'),
|
||
|
policies: policySelector(),
|
||
|
roles: roleSelector(),
|
||
|
};
|
||
|
}
|