diff --git a/ui/app/components/sidebar/frame.hbs b/ui/app/components/sidebar/frame.hbs index 7cd0c84b2f..2b19db5c9b 100644 --- a/ui/app/components/sidebar/frame.hbs +++ b/ui/app/components/sidebar/frame.hbs @@ -18,9 +18,11 @@ /> <:actions> - diff --git a/ui/app/components/sidebar/user-menu.hbs b/ui/app/components/sidebar/user-menu.hbs index dde7f1cec8..c46cf1d4b5 100644 --- a/ui/app/components/sidebar/user-menu.hbs +++ b/ui/app/components/sidebar/user-menu.hbs @@ -12,7 +12,7 @@ as |Dropdown| > - + diff --git a/ui/app/templates/components/identity/popup-metadata.hbs b/ui/app/templates/components/identity/popup-metadata.hbs index 9954f1c785..80c516f90b 100644 --- a/ui/app/templates/components/identity/popup-metadata.hbs +++ b/ui/app/templates/components/identity/popup-metadata.hbs @@ -6,7 +6,7 @@
- + Remove
diff --git a/ui/app/templates/components/identity/popup-policy.hbs b/ui/app/templates/components/identity/popup-policy.hbs index eef6d33d58..6f049afdaa 100644 --- a/ui/app/templates/components/identity/popup-policy.hbs +++ b/ui/app/templates/components/identity/popup-policy.hbs @@ -11,13 +11,12 @@ @hasChevron={{false}} data-test-popup-menu-trigger /> - - - + View policy + Edit policy + + Remove from + {{@model.identityType}} + diff --git a/ui/app/templates/components/mfa/login-enforcement-list-item.hbs b/ui/app/templates/components/mfa/login-enforcement-list-item.hbs index 1827e60c27..804ca654e6 100644 --- a/ui/app/templates/components/mfa/login-enforcement-list-item.hbs +++ b/ui/app/templates/components/mfa/login-enforcement-list-item.hbs @@ -27,17 +27,15 @@ data-test-popup-menu-trigger /> + >Details + >Edit diff --git a/ui/app/templates/components/mfa/method-list-item.hbs b/ui/app/templates/components/mfa/method-list-item.hbs index 75a719a5a3..ef3e9bdf38 100644 --- a/ui/app/templates/components/mfa/method-list-item.hbs +++ b/ui/app/templates/components/mfa/method-list-item.hbs @@ -38,17 +38,15 @@ data-test-popup-menu-trigger /> + >Details + >Edit diff --git a/ui/app/templates/components/oidc/client-list.hbs b/ui/app/templates/components/oidc/client-list.hbs index 27f00eeea0..7e89d86657 100644 --- a/ui/app/templates/components/oidc/client-list.hbs +++ b/ui/app/templates/components/oidc/client-list.hbs @@ -34,19 +34,17 @@ /> {{#if client.canRead}} + >Details {{/if}} {{#if client.canEdit}} + >Edit {{/if}} {{/if}} diff --git a/ui/app/templates/components/oidc/provider-list.hbs b/ui/app/templates/components/oidc/provider-list.hbs index d684399fb0..5850cbf07d 100644 --- a/ui/app/templates/components/oidc/provider-list.hbs +++ b/ui/app/templates/components/oidc/provider-list.hbs @@ -34,19 +34,17 @@ /> {{#if provider.canRead}} + >Details {{/if}} {{#if provider.canEdit}} + >Edit {{/if}} {{/if}} diff --git a/ui/app/templates/components/raft-storage-overview.hbs b/ui/app/templates/components/raft-storage-overview.hbs index 7c4e00100f..b9cd94daa9 100644 --- a/ui/app/templates/components/raft-storage-overview.hbs +++ b/ui/app/templates/components/raft-storage-overview.hbs @@ -12,13 +12,12 @@ + >Download {{else}} - + Download {{/if}} - + Restore diff --git a/ui/app/templates/components/secret-list/aws-role-item.hbs b/ui/app/templates/components/secret-list/aws-role-item.hbs index a995f16e4f..76b8f3ce2a 100644 --- a/ui/app/templates/components/secret-list/aws-role-item.hbs +++ b/ui/app/templates/components/secret-list/aws-role-item.hbs @@ -36,11 +36,10 @@ {{else if @item.canGenerate}} + >Generate credentials {{/if}} {{#if @item.updatePath.isPending}} @@ -49,27 +48,24 @@ {{else}} {{#if @item.canRead}} + >Details {{/if}} {{#if @item.canEdit}} + >Edit {{/if}} {{#if @item.canDelete}} + >Delete {{/if}} {{/if}} diff --git a/ui/app/templates/components/secret-list/database-list-item.hbs b/ui/app/templates/components/secret-list/database-list-item.hbs index 409429dfd3..04ea0f4380 100644 --- a/ui/app/templates/components/secret-list/database-list-item.hbs +++ b/ui/app/templates/components/secret-list/database-list-item.hbs @@ -34,46 +34,41 @@ data-test-popup-menu-trigger /> {{#if @item.canEdit}} - + Edit connection {{/if}} {{#if @item.canEditRole}} - + Edit Role {{/if}} {{#if @item.canReset}} + >Reset connection {{/if}} {{#if (and (eq @item.type "dynamic") @item.canGenerateCredentials)}} + >Generate credentials {{else if (and (eq @item.type "static") @item.canGetCredentials)}} + >Get credentials {{/if}} {{#if (and @item.canRotateRoleCredentials (eq this.keyTypeValue "static"))}} + >Rotate credentials {{/if}} {{#if @item.canRotateRoot}} + >Rotate root credentials {{/if}} diff --git a/ui/app/templates/components/secret-list/item.hbs b/ui/app/templates/components/secret-list/item.hbs index 4aa54a6980..12af42a3e8 100644 --- a/ui/app/templates/components/secret-list/item.hbs +++ b/ui/app/templates/components/secret-list/item.hbs @@ -21,6 +21,7 @@ @backend={{@backendModel.id}} @queryParams={{secret-query-params @backendModel.type @item.type asQueryParams=true}} class="has-text-black has-text-weight-semibold" + data-test-secret-item-link={{@item.id}} > {{#if (eq @backendModel.type "transit")}} @@ -39,7 +40,7 @@ data-test-popup-menu-trigger /> {{#if @item.isFolder}} - + Contents {{else}} {{#if (or @item.versionPath.isLoading @item.secretPath.isLoading)}} @@ -48,27 +49,24 @@ {{else}} {{#if @item.canRead}} + >Details {{/if}} {{#if @item.canEdit}} + >Edit {{/if}} {{#if @item.canDelete}} + >Delete {{/if}} {{/if}} {{/if}} diff --git a/ui/app/templates/components/secret-list/ssh-role-item.hbs b/ui/app/templates/components/secret-list/ssh-role-item.hbs index aa6c295704..b137c41798 100644 --- a/ui/app/templates/components/secret-list/ssh-role-item.hbs +++ b/ui/app/templates/components/secret-list/ssh-role-item.hbs @@ -50,11 +50,10 @@ {{else if @item.canGenerate}} + >Generate credentials {{/if}} {{else if (eq @item.keyType "ca")}} {{#if @item.signPath.isPending}} @@ -63,11 +62,10 @@ {{else if @item.canGenerate}} + >Sign Keys {{/if}} {{/if}} {{#if @loadingToggleZeroAddress}} @@ -75,10 +73,9 @@ {{else if @item.canEditZeroAddress}} - + + {{if @item.zeroAddress "Disable Zero Address" "Enable Zero Address"}} + {{/if}} {{#if @item.updatePath.isPending}} @@ -87,27 +84,24 @@ {{else}} {{#if @item.canRead}} + >Details {{/if}} {{#if @item.canEdit}} + >Edit {{/if}} {{#if @item.canDelete}} + >Delete {{/if}} {{/if}} diff --git a/ui/app/templates/components/secret-list/transform-list-item.hbs b/ui/app/templates/components/secret-list/transform-list-item.hbs index 18c176ac0d..94e8c28a39 100644 --- a/ui/app/templates/components/secret-list/transform-list-item.hbs +++ b/ui/app/templates/components/secret-list/transform-list-item.hbs @@ -33,10 +33,10 @@ data-test-popup-menu-trigger /> {{#if @item.updatePath.canRead}} - + Details {{/if}} {{#if @item.updatePath.canUpdate}} - + Edit {{/if}} {{/if}} diff --git a/ui/app/templates/components/secret-list/transform-transformation-item.hbs b/ui/app/templates/components/secret-list/transform-transformation-item.hbs index 37fd28ccac..a1d8cc7548 100644 --- a/ui/app/templates/components/secret-list/transform-transformation-item.hbs +++ b/ui/app/templates/components/secret-list/transform-transformation-item.hbs @@ -33,10 +33,10 @@ data-test-popup-menu-trigger /> {{#if @item.updatePath.canRead}} - + Details {{/if}} {{#if @item.updatePath.canUpdate}} - + Edit {{/if}} {{/if}} diff --git a/ui/app/templates/docs.hbs b/ui/app/templates/docs.hbs index 27b4f56a80..500bd5fc43 100644 --- a/ui/app/templates/docs.hbs +++ b/ui/app/templates/docs.hbs @@ -15,7 +15,7 @@ <:actions> - + diff --git a/ui/app/templates/vault/cluster/access/identity/index.hbs b/ui/app/templates/vault/cluster/access/identity/index.hbs index de21aa26f6..03cccc36df 100644 --- a/ui/app/templates/vault/cluster/access/identity/index.hbs +++ b/ui/app/templates/vault/cluster/access/identity/index.hbs @@ -41,10 +41,9 @@ data-test-popup-menu-trigger /> + >Details {{#if (or item.isReloading item.updatePath.isPending item.aliasPath.isPending)}} @@ -55,27 +54,28 @@ {{#if (or (eq this.identityType "entity") (and (eq item.type "external") (not item.alias)))}} + >Create alias {{/if}} {{/if}} {{#if item.canEdit}} - + Edit {{#if item.disabled}} - + Enable {{else if (eq this.identityType "entity")}} - + Disable {{/if}} {{/if}} {{#if item.canDelete}} + >Delete {{/if}} {{/if}} diff --git a/ui/app/templates/vault/cluster/access/methods.hbs b/ui/app/templates/vault/cluster/access/methods.hbs index 3efa7fb88f..01d92eba45 100644 --- a/ui/app/templates/vault/cluster/access/methods.hbs +++ b/ui/app/templates/vault/cluster/access/methods.hbs @@ -76,20 +76,19 @@ @hasChevron={{false}} data-test-popup-menu-trigger /> - + + View configuration + {{#if (or method.canEdit (and (eq method.methodType "aws") method.canEditAws))}} - + + Edit configuration + {{/if}} {{#if (and (not-eq method.methodType "token") method.canDisable)}} - + Disable {{/if}} diff --git a/ui/app/templates/vault/cluster/access/mfa/enforcements/enforcement/index.hbs b/ui/app/templates/vault/cluster/access/mfa/enforcements/enforcement/index.hbs index 46900af36f..7932f9f5f8 100644 --- a/ui/app/templates/vault/cluster/access/mfa/enforcements/enforcement/index.hbs +++ b/ui/app/templates/vault/cluster/access/mfa/enforcements/enforcement/index.hbs @@ -93,11 +93,10 @@ data-test-popup-menu-trigger /> + >Details diff --git a/ui/app/templates/vault/cluster/access/namespaces/index.hbs b/ui/app/templates/vault/cluster/access/namespaces/index.hbs index 169753405e..6c2b8f6b35 100644 --- a/ui/app/templates/vault/cluster/access/namespaces/index.hbs +++ b/ui/app/templates/vault/cluster/access/namespaces/index.hbs @@ -46,7 +46,7 @@ {{/if}} {{/let}} - + Delete {{#if (eq this.nsToDelete list.item)}} + >Details + >Edit diff --git a/ui/app/templates/vault/cluster/access/oidc/clients/client.hbs b/ui/app/templates/vault/cluster/access/oidc/clients/client.hbs index 5464933978..ffee2802fb 100644 --- a/ui/app/templates/vault/cluster/access/oidc/clients/client.hbs +++ b/ui/app/templates/vault/cluster/access/oidc/clients/client.hbs @@ -3,7 +3,7 @@ SPDX-License-Identifier: BUSL-1.1 ~}} -{{#if this.showHeader}} +{{#if (not-eq this.router.currentRoute.localName "edit")}} diff --git a/ui/app/templates/vault/cluster/access/oidc/keys/index.hbs b/ui/app/templates/vault/cluster/access/oidc/keys/index.hbs index 2995b2cb53..377e3238fe 100644 --- a/ui/app/templates/vault/cluster/access/oidc/keys/index.hbs +++ b/ui/app/templates/vault/cluster/access/oidc/keys/index.hbs @@ -21,7 +21,7 @@
- + {{model.name}}
@@ -36,19 +36,17 @@ data-test-popup-menu-trigger /> + >Details + >Edit
diff --git a/ui/app/templates/vault/cluster/access/oidc/keys/key.hbs b/ui/app/templates/vault/cluster/access/oidc/keys/key.hbs index 8ed90248a7..57b92fa36d 100644 --- a/ui/app/templates/vault/cluster/access/oidc/keys/key.hbs +++ b/ui/app/templates/vault/cluster/access/oidc/keys/key.hbs @@ -3,7 +3,7 @@ SPDX-License-Identifier: BUSL-1.1 ~}} -{{#if this.showHeader}} +{{#if (not-eq this.router.currentRoute.localName "edit")}} diff --git a/ui/app/templates/vault/cluster/access/oidc/providers/provider.hbs b/ui/app/templates/vault/cluster/access/oidc/providers/provider.hbs index abdcb1235c..08407ac09a 100644 --- a/ui/app/templates/vault/cluster/access/oidc/providers/provider.hbs +++ b/ui/app/templates/vault/cluster/access/oidc/providers/provider.hbs @@ -3,7 +3,7 @@ SPDX-License-Identifier: BUSL-1.1 ~}} -{{#if this.showHeader}} +{{#if (not-eq this.router.currentRoute.localName "edit")}} diff --git a/ui/app/templates/vault/cluster/access/oidc/scopes/index.hbs b/ui/app/templates/vault/cluster/access/oidc/scopes/index.hbs index 0747bde839..21237bcd31 100644 --- a/ui/app/templates/vault/cluster/access/oidc/scopes/index.hbs +++ b/ui/app/templates/vault/cluster/access/oidc/scopes/index.hbs @@ -37,19 +37,17 @@ data-test-popup-menu-trigger /> + >Details + >Edit diff --git a/ui/app/templates/vault/cluster/policies/index.hbs b/ui/app/templates/vault/cluster/policies/index.hbs index df42c3bd87..fc01097327 100644 --- a/ui/app/templates/vault/cluster/policies/index.hbs +++ b/ui/app/templates/vault/cluster/policies/index.hbs @@ -105,27 +105,24 @@ {{else}} {{#if item.canRead}} + >Details {{/if}} {{#if item.canEdit}} + >Edit {{/if}} {{#if (and item.canDelete (not-eq item.name "default"))}} + >Delete {{/if}} {{/if}} diff --git a/ui/app/templates/vault/cluster/secrets/backends.hbs b/ui/app/templates/vault/cluster/secrets/backends.hbs index 5457cb4328..dc7f510cc4 100644 --- a/ui/app/templates/vault/cluster/secrets/backends.hbs +++ b/ui/app/templates/vault/cluster/secrets/backends.hbs @@ -94,19 +94,15 @@ @hasChevron={{false}} data-test-popup-menu-trigger /> - + + View configuration + {{#if (not-eq backend.type "cubbyhole")}} + >Disable {{/if}} diff --git a/ui/lib/config-ui/addon/components/messages/page/list.hbs b/ui/lib/config-ui/addon/components/messages/page/list.hbs index 9b7a7c9944..9ec8b4b285 100644 --- a/ui/lib/config-ui/addon/components/messages/page/list.hbs +++ b/ui/lib/config-ui/addon/components/messages/page/list.hbs @@ -113,10 +113,13 @@ data-test-popup-menu-trigger /> {{#if message.canEditCustomMessages}} - + Edit {{/if}} {{#if message.canDeleteCustomMessages}} - + Delete {{/if}} {{/if}} diff --git a/ui/lib/core/addon/components/confirm-action.hbs b/ui/lib/core/addon/components/confirm-action.hbs index 019d1246fc..e66ee1eecb 100644 --- a/ui/lib/core/addon/components/confirm-action.hbs +++ b/ui/lib/core/addon/components/confirm-action.hbs @@ -7,13 +7,14 @@ {{! Hds component renders
  • and