mirror of
https://github.com/status-im/consul.git
synced 2025-02-09 20:33:45 +00:00
When editing Nspaces, although you can assign policies to a nspace using PolicyDefaults you cannot assign a Service Identity to a policy like you can when adding a policy to a token. This commit adds an extra attribute to our policy-form/policy-selector component so you can disable this setting. At a later date we may change this to have a conficgurable `<Slot />` instead. Simple acceptance tests is included here
18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
export default function(
|
|
visitable,
|
|
submitable,
|
|
deletable,
|
|
cancelable,
|
|
policySelector,
|
|
roleSelector
|
|
) {
|
|
return {
|
|
visit: visitable(['/:dc/namespaces/:namespace', '/:dc/namespaces/create']),
|
|
...submitable({}, 'form > div'),
|
|
...cancelable({}, 'form > div'),
|
|
...deletable({}, 'form > div'),
|
|
policies: policySelector(),
|
|
roles: roleSelector(),
|
|
};
|
|
}
|