open-vault/ui/app/templates/partials/replication/replication-mode-summary-menu.hbs
2018-05-25 12:05:20 -06:00

43 lines
1.2 KiB
Handlebars

<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>
{{clusterIdDisplay}}
</code>
</span>
{{else}}
Enable
{{/if}}
</div>
</div>
<div class="level-right">
{{#if replicationEnabled}}
{{#if (get cluster (concat mode 'StateGlyph'))}}
<span class="has-text-success">
{{i-con size=16 glyph=(get cluster (concat mode 'StateGlyph'))}}
</span>
{{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}}
</div>
</div>