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(),
|
auth: service(),
|
||||||
store: service(),
|
store: service(),
|
||||||
media: service(),
|
media: service(),
|
||||||
|
version: service(),
|
||||||
type: 'cluster',
|
type: 'cluster',
|
||||||
itemTag: null,
|
itemTag: null,
|
||||||
partialName: computed('type', function() {
|
partialName: computed('type', function() {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="message is-list has-copy-button" tabindex="-1">
|
<div class="message is-list has-copy-button" tabindex="-1">
|
||||||
{{#let
|
{{#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|}}
|
as |cmd|}}
|
||||||
<HoverCopyButton @copyValue={{cmd}} />
|
<HoverCopyButton @copyValue={{cmd}} />
|
||||||
<div class="message-body">
|
<div class="message-body">
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
{{else if activeCluster.version.isOSS}}
|
{{else if version.isOSS}}
|
||||||
<li>
|
<li>
|
||||||
{{#link-to "vault.cluster.replication"}}
|
{{#link-to "vault.cluster.replication"}}
|
||||||
<div class="level is-mobile">
|
<div class="level is-mobile">
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
</nav>
|
</nav>
|
||||||
<hr/>
|
<hr/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#unless isOSS}}
|
{{#unless version.isOSS}}
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
<div class="menu-label">
|
<div class="menu-label">
|
||||||
License
|
License
|
||||||
|
|
Loading…
Reference in a new issue