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
This commit is contained in:
Matthew Irish 2018-11-27 17:05:34 -06:00 committed by GitHub
parent 971e6b0146
commit b5aa3c123f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -9,6 +9,7 @@ export default Component.extend({
auth: service(),
store: service(),
media: service(),
version: service(),
type: 'cluster',
itemTag: null,
partialName: computed('type', function() {

View file

@ -25,7 +25,7 @@
</div>
<div class="message is-list has-copy-button" tabindex="-1">
{{#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|}}
<HoverCopyButton @copyValue={{cmd}} />
<div class="message-body">

View file

@ -43,7 +43,7 @@
}}
{{/if}}
</li>
{{else if activeCluster.version.isOSS}}
{{else if version.isOSS}}
<li>
{{#link-to "vault.cluster.replication"}}
<div class="level is-mobile">
@ -68,7 +68,7 @@
</nav>
<hr/>
{{/if}}
{{#unless isOSS}}
{{#unless version.isOSS}}
<nav class="menu">
<div class="menu-label">
License