mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
backport of commit 6946556e96 (#19225)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0490c4c508
commit
6c84c14e1a
3
changelog/19190.txt
Normal file
3
changelog/19190.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: show Get credentials button for static roles detail page when a user has the proper permissions.
|
||||
```
|
||||
@@ -36,12 +36,17 @@
|
||||
Rotate credentials
|
||||
</button>
|
||||
{{/if}}
|
||||
{{#if @model.canGenerateCredentials}}
|
||||
{{#if
|
||||
(or
|
||||
(and (eq @model.type "static") @model.canGetCredentials)
|
||||
(and (eq @model.type "dynamic") @model.canGenerateCredentials)
|
||||
)
|
||||
}}
|
||||
<button
|
||||
type="button"
|
||||
class="toolbar-link"
|
||||
{{on "click" (fn this.generateCreds @model.id @model.type)}}
|
||||
data-test-database-role-generate-creds
|
||||
data-test-database-role-creds={{@model.type}}
|
||||
>
|
||||
{{if (eq @model.type "static") "Get credentials" "Generate credentials"}}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user