mirror of https://github.com/status-im/consul.git
23 lines
477 B
JavaScript
23 lines
477 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
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(),
|
|
};
|
|
}
|