-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enterprise version detection fix (#4547)
* fix version service parsing of .hsm in a version string * remove race condition where the replication menu would show the enterprise upsell in an enterprise binary * fix styling and layout of replication status menu * move version check to beforeModel
- Loading branch information
Showing
5 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 32 additions & 30 deletions
62
ui/app/templates/partials/replication/replication-mode-summary-menu.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
<div class="level-left is-flex-1"> | ||
<div> | ||
{{#if (or replicationUnsupported (and (eq mode 'performance') (not version.hasPerfReplication)))}} | ||
<p> | ||
Upgrade to Vault Enterprise Premium to use Performance Replication. | ||
</p> | ||
{{else if replicationEnabled}} | ||
<span> | ||
{{capitalize modeForUrl}} | ||
</span> | ||
{{#if secondaryId}} | ||
<div class="level is-mobile"> | ||
<div class="level-left is-flex-1"> | ||
<div> | ||
{{#if (or replicationUnsupported (and (eq mode 'performance') (not version.hasPerfReplication)))}} | ||
<p> | ||
Upgrade to Vault Enterprise Premium to use Performance Replication. | ||
</p> | ||
{{else if replicationEnabled}} | ||
<span> | ||
{{capitalize modeForUrl}} | ||
</span> | ||
{{#if secondaryId}} | ||
<span class="tag is-light"> | ||
<code> | ||
{{secondaryId}} | ||
</code> | ||
</span> | ||
{{/if}} | ||
<span class="tag is-light"> | ||
<code> | ||
{{secondaryId}} | ||
{{clusterIdDisplay}} | ||
</code> | ||
</span> | ||
{{else}} | ||
Enable | ||
{{/if}} | ||
<span class="tag is-light"> | ||
<code> | ||
{{clusterIdDisplay}} | ||
</code> | ||
</span> | ||
{{else}} | ||
Enable | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="level-right"> | ||
{{#if replicationEnabled}} | ||
{{#if (get cluster (concat mode 'StateGlyph'))}} | ||
{{i-con size=14 glyph=(get cluster (concat mode 'StateGlyph')) class="has-text-info" aria-label=(concat mode 'StateDisplay')}} | ||
{{else if syncProgress}} | ||
<progress value="{{syncProgressPercent}}" max="100" class="progress is-small is-narrow is-info"> | ||
{{syncProgress.progress}} of {{syncProgress.total}} keys | ||
</progress> | ||
<div class="level-right"> | ||
{{#if replicationEnabled}} | ||
{{#if (get cluster (concat mode 'StateGlyph'))}} | ||
{{i-con size=14 glyph=(get cluster (concat mode 'StateGlyph'))}} | ||
{{else if syncProgress}} | ||
<progress value="{{syncProgressPercent}}" max="100" class="progress is-small is-narrow is-info"> | ||
{{syncProgress.progress}} of {{syncProgress.total}} keys | ||
</progress> | ||
{{/if}} | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters