From b5aa3c123f2afba9348382d36434daceb51d1a75 Mon Sep 17 00:00:00 2001 From: Matthew Irish Date: Tue, 27 Nov 2018 17:05:34 -0600 Subject: [PATCH] UI - Correct the DR token command (#5857) * fix dr-token generation token command * inject version service in the status menu so we can hide the license link in the status menu --- ui/app/components/status-menu.js | 1 + ui/app/templates/components/shamir-flow.hbs | 2 +- ui/app/templates/partials/status/cluster.hbs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/app/components/status-menu.js b/ui/app/components/status-menu.js index 9b1e23548..642ff3d8d 100644 --- a/ui/app/components/status-menu.js +++ b/ui/app/components/status-menu.js @@ -9,6 +9,7 @@ export default Component.extend({ auth: service(), store: service(), media: service(), + version: service(), type: 'cluster', itemTag: null, partialName: computed('type', function() { diff --git a/ui/app/templates/components/shamir-flow.hbs b/ui/app/templates/components/shamir-flow.hbs index 4ce757024..ff8f53028 100644 --- a/ui/app/templates/components/shamir-flow.hbs +++ b/ui/app/templates/components/shamir-flow.hbs @@ -25,7 +25,7 @@
{{#let - (concat 'vault operator generate-root -otp="' otp '" -decode="' encoded_token '"') + (concat 'vault operator generate-root -dr-token -otp="' otp '" -decode="' encoded_token '"') as |cmd|}}
diff --git a/ui/app/templates/partials/status/cluster.hbs b/ui/app/templates/partials/status/cluster.hbs index 7fb8357ba..f2d7862fd 100644 --- a/ui/app/templates/partials/status/cluster.hbs +++ b/ui/app/templates/partials/status/cluster.hbs @@ -43,7 +43,7 @@ }} {{/if}} - {{else if activeCluster.version.isOSS}} + {{else if version.isOSS}}
  • {{#link-to "vault.cluster.replication"}}
    @@ -68,7 +68,7 @@
    {{/if}} - {{#unless isOSS}} + {{#unless version.isOSS}}