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:
parent
971e6b0146
commit
b5aa3c123f
|
@ -9,6 +9,7 @@ export default Component.extend({
|
|||
auth: service(),
|
||||
store: service(),
|
||||
media: service(),
|
||||
version: service(),
|
||||
type: 'cluster',
|
||||
itemTag: null,
|
||||
partialName: computed('type', function() {
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue