mirror of https://github.com/hashicorp/consul
ui: ACL Policies. Catch all server errors (#5836)
Always show any server errors under Rules, not just invalid HCLpull/5865/head
parent
5f7494137a
commit
75e221d256
@ -1,11 +1,16 @@
|
|||||||
export default (submitable, cancelable, radiogroup) => () => {
|
export default (submitable, cancelable, radiogroup, text) => (
|
||||||
|
scope = '[data-test-policy-form]'
|
||||||
|
) => {
|
||||||
return {
|
return {
|
||||||
// this should probably be settable
|
// this should probably be settable
|
||||||
resetScope: true,
|
resetScope: true,
|
||||||
scope: '[data-test-policy-form]',
|
scope: scope,
|
||||||
prefix: 'policy',
|
prefix: 'policy',
|
||||||
...submitable(),
|
...submitable(),
|
||||||
...cancelable(),
|
...cancelable(),
|
||||||
...radiogroup('template', ['', 'service-identity'], 'policy'),
|
...radiogroup('template', ['', 'service-identity'], 'policy'),
|
||||||
|
rules: {
|
||||||
|
error: text('[data-test-rules] strong'),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in new issue