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(), 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() {

View file

@ -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">

View file

@ -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