d1b3a63b2f
In some circumstances a consul 1.4 client could be running in an un-upgraded 1.3 or lower cluster. Currently this gives a 500 error on the new ACL token endpoint. Here we catch this specific 500 error/message and set the users AccessorID to null. Elsewhere in the frontend we use this fact (AccessorID being null) to decide whether to present the legacy or the new ACL UI to the user. Also: - Re-adds in most of the old style ACL acceptance tests, now that we are keeping the old style UI - Restricts code editors to HCL only mode for all `Rules` editing (legacy/'half legacy'/new style) - Adds a [Stop using] button to the old style ACL rows so its possible to logout. - Updates copy and documentation links for the upgrade notices
39 lines
974 B
Handlebars
39 lines
974 B
Handlebars
{{#if (eq type 'create')}}
|
|
{{#if (eq status 'success') }}
|
|
Your ACL token has been added.
|
|
{{else}}
|
|
There was an error adding your ACL token.
|
|
{{/if}}
|
|
{{else if (eq type 'update') }}
|
|
{{#if (eq status 'success') }}
|
|
Your ACL token has been saved.
|
|
{{else}}
|
|
There was an error saving your ACL token.
|
|
{{/if}}
|
|
{{ else if (eq type 'delete')}}
|
|
{{#if (eq status 'success') }}
|
|
Your ACL token was deleted.
|
|
{{else}}
|
|
There was an error deleting your ACL token.
|
|
{{/if}}
|
|
{{ else if (eq type 'logout')}}
|
|
{{#if (eq status 'success') }}
|
|
You are now logged out.
|
|
{{else}}
|
|
There was an error logging out.
|
|
{{/if}}
|
|
{{ else if (eq type 'use')}}
|
|
{{#if (eq status 'success') }}
|
|
Now using new ACL token.
|
|
{{else}}
|
|
There was an error using that ACL token.
|
|
{{/if}}
|
|
{{ else if (eq type 'clone')}}
|
|
{{#if (eq status 'success') }}
|
|
Your ACL token was cloned.
|
|
{{else}}
|
|
There was an error cloning your ACL token.
|
|
{{/if}}
|
|
{{/if}}
|
|
|