From 061bc8ed2bbed49eb4f54c3a04647fbbefb13e48 Mon Sep 17 00:00:00 2001 From: Noelle Daley Date: Mon, 30 Mar 2020 17:36:49 -0700 Subject: [PATCH] ui/provide otp (#8630) * show OTP if there is one, otherwise show placeholder * show OTP during first step of token generation process * use let instead of with --- ui/app/templates/components/shamir-flow.hbs | 27 ++++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/ui/app/templates/components/shamir-flow.hbs b/ui/app/templates/components/shamir-flow.hbs index d5d9065ab56f..edc58ea02e8a 100644 --- a/ui/app/templates/components/shamir-flow.hbs +++ b/ui/app/templates/components/shamir-flow.hbs @@ -4,11 +4,7 @@

- {{#if otp}} - Encoded Operation Token - {{else}} - Encrypted Operation Token - {{/if}} + Encoded Operation Token

{{encoded_token}}
@@ -23,10 +19,10 @@ {{otp}} + {{/if}}
- {{#let - (concat 'vault operator generate-root -dr-token -otp="' otp '" -decode="' encoded_token '"') - as |cmd|}} + {{#let (if otp + (concat 'vault operator generate-root -otp="' otp '" -decode="' encoded_token '"') (concat 'vault operator generate-root -otp="" -decode="' encoded_token '"') ) as |cmd|}}

@@ -36,7 +32,6 @@

{{/let}}
- {{/if}}
{{/if}}
+ {{#if otp}} +

+ +

+
+ +
+

+ One Time Password (otp) +

+ {{otp}} +
+
+ {{/if}} {{#if (has-block)}} {{yield}} {{else if formText}}