open-vault/ui/app/templates/partials/replication/replication-mode-summary-menu.hbs
Matthew Irish d93c92e4f5
UI - guard page redesign (#4779)
* add NavHeader component
* use NavHeader in SplashPage component and application.hbs
* let download button take a block
* add RadialProgress component
* use RadialProgress in ShamirFlow component
* style up the RadialProgress component
* update ember-basic-dropdown, ember-basic-dropdown-hover
* rework operation token generation workflow
* directly depend on ember-maybe-in-element
2018-06-26 16:35:47 -05:00

49 lines
1.3 KiB
Handlebars

<div class="level is-mobile">
<div class="level-left is-flex-1">
<div>
{{#if replicationUnsupported}}
Unsupported
{{else if (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">
<code>
{{secondaryId}}
</code>
</span>
{{/if}}
<span class="tag">
<code>
{{clusterIdDisplay}}
</code>
</span>
{{else}}
{{#if (eq tagName 'a')}}
Enable
{{else}}
Disabled
{{/if}}
{{/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>