From 04676c0eb527f932e288845625bf010d4c8de2c4 Mon Sep 17 00:00:00 2001 From: Kianna <30884335+kiannaquach@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:13:44 -0700 Subject: [PATCH] UI: [VAULT-17700] Part 3 HDS button (#23830) --- ui/app/components/policy-form.hbs | 23 ++++++++--------- ui/app/components/sidebar/user-menu.hbs | 1 + .../vault/cluster/access/control-groups.hbs | 4 +-- .../vault/cluster/access/identity/index.hbs | 1 + .../vault/cluster/access/leases/index.hbs | 2 +- .../vault/cluster/access/leases/show.hbs | 4 +-- .../mfa/enforcements/enforcement/index.hbs | 13 +++++----- .../vault/cluster/access/mfa/index.hbs | 9 +------ .../cluster/access/mfa/methods/create.hbs | 14 ++++------- .../templates/vault/cluster/access/oidc.hbs | 11 +++----- ui/app/templates/vault/cluster/auth.hbs | 25 +++++++++++-------- ui/app/templates/vault/cluster/init.hbs | 9 +++---- .../vault/cluster/secrets/backend/sign.hbs | 18 +++++++------ 13 files changed, 60 insertions(+), 74 deletions(-) diff --git a/ui/app/components/policy-form.hbs b/ui/app/components/policy-form.hbs index 1dd1353347..cd872e3ed4 100644 --- a/ui/app/components/policy-form.hbs +++ b/ui/app/components/policy-form.hbs @@ -89,25 +89,22 @@ {{/each}}
-
- - -
+ /> +
diff --git a/ui/app/components/sidebar/user-menu.hbs b/ui/app/components/sidebar/user-menu.hbs index d15d368f25..fb49462ab4 100644 --- a/ui/app/components/sidebar/user-menu.hbs +++ b/ui/app/components/sidebar/user-menu.hbs @@ -60,6 +60,7 @@ {{#if (is-before (now interval=1000) this.auth.tokenExpirationDate)}} {{#if this.auth.authData.renewable}}
  • + {{! TODO Hds::Button replacement skipped in favor of updating it when there is a Hds::Dropdown swapout }} + {{else}} diff --git a/ui/app/templates/vault/cluster/access/identity/index.hbs b/ui/app/templates/vault/cluster/access/identity/index.hbs index d995acd240..19b51620ec 100644 --- a/ui/app/templates/vault/cluster/access/identity/index.hbs +++ b/ui/app/templates/vault/cluster/access/identity/index.hbs @@ -64,6 +64,7 @@
  • {{#if item.disabled}} + {{! TODO Hds::Button replacement skipped in favor of updating it when there is a Hds::Dropdown swapout }} diff --git a/ui/app/templates/vault/cluster/access/leases/index.hbs b/ui/app/templates/vault/cluster/access/leases/index.hbs index 61abe627d5..b5ff61e397 100644 --- a/ui/app/templates/vault/cluster/access/leases/index.hbs +++ b/ui/app/templates/vault/cluster/access/leases/index.hbs @@ -27,7 +27,7 @@
    - +
    \ No newline at end of file diff --git a/ui/app/templates/vault/cluster/access/leases/show.hbs b/ui/app/templates/vault/cluster/access/leases/show.hbs index 6090795585..3837cd9266 100644 --- a/ui/app/templates/vault/cluster/access/leases/show.hbs +++ b/ui/app/templates/vault/cluster/access/leases/show.hbs @@ -81,9 +81,7 @@ />
    - +
    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 85f9e1016d..b56c2bfb80 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 @@ -45,14 +45,13 @@ - + />

    - +

    diff --git a/ui/app/templates/vault/cluster/access/mfa/methods/create.hbs b/ui/app/templates/vault/cluster/access/mfa/methods/create.hbs index 97894e97ff..2bac109738 100644 --- a/ui/app/templates/vault/cluster/access/mfa/methods/create.hbs +++ b/ui/app/templates/vault/cluster/access/mfa/methods/create.hbs @@ -92,16 +92,12 @@

    {{#if this.showForms}} - - + + + + {{else if this.type}} - + {{/if}}
    diff --git a/ui/app/templates/vault/cluster/access/oidc.hbs b/ui/app/templates/vault/cluster/access/oidc.hbs index a418f6c796..8167d61db1 100644 --- a/ui/app/templates/vault/cluster/access/oidc.hbs +++ b/ui/app/templates/vault/cluster/access/oidc.hbs @@ -25,14 +25,11 @@

    {{#if this.isCta}} - + /> {{/if}}
    {{#unless this.isCta}} diff --git a/ui/app/templates/vault/cluster/auth.hbs b/ui/app/templates/vault/cluster/auth.hbs index 95e5e8d30c..4d75b44acc 100644 --- a/ui/app/templates/vault/cluster/auth.hbs +++ b/ui/app/templates/vault/cluster/auth.hbs @@ -14,10 +14,7 @@ @subTitle={{join ". " this.mfaErrors}} class="is-shadowless" > - + @@ -34,13 +31,21 @@
    {{#if this.mfaAuthData}} - + {{else if this.waitingForOktaNumberChallenge}} - + {{/if}}

    {{if (or this.mfaAuthData this.waitingForOktaNumberChallenge) "Authenticate" "Sign in to Vault"}} diff --git a/ui/app/templates/vault/cluster/init.hbs b/ui/app/templates/vault/cluster/init.hbs index c51d2d08c2..70d44deb8e 100644 --- a/ui/app/templates/vault/cluster/init.hbs +++ b/ui/app/templates/vault/cluster/init.hbs @@ -205,14 +205,13 @@ {{/if}}

    - + />
    {{svg-jar "initialize"}}
    diff --git a/ui/app/templates/vault/cluster/secrets/backend/sign.hbs b/ui/app/templates/vault/cluster/secrets/backend/sign.hbs index 1cac42a98e..5780bdb6f8 100644 --- a/ui/app/templates/vault/cluster/secrets/backend/sign.hbs +++ b/ui/app/templates/vault/cluster/secrets/backend/sign.hbs @@ -67,9 +67,12 @@
    {{/if}}
    - +
    {{else}} @@ -105,14 +108,13 @@
    - + />