vault/ui/lib/replication/addon/templates/components/replication-action-demote.hbs
Joshua Ogle 6603a86499
UI: Confirm Action as a popover
* Refactors ConfirmAction implementation as a popover
* Improves copy surrounding consequences of destructive actions
* Moves 'Delete' buttons to Toolbar
2019-05-17 11:29:21 -06:00

48 lines
1.6 KiB
Handlebars

<h4 class="title is-5 is-marginless">
Demote cluster
</h4>
<div class="content">
{{#if (and
(eq replicationMode 'dr')
(not model.performance.replicationDisabled)
)
}}
<div data-test-demote-warning>
<AlertInline
@type="danger"
@message="Demoting this DR primary cluster
would result in a DR secondary and in that mode Vault is read-only. This
cluster is also currently operating as a Performance
capitalize model.performance.modeForUrl}}, demoting it will leave your
replication setup without a performance primary cluster until a new
cluster is promoted."
/>
</div>
{{/if}}
<p>
Demote this {{replicationDisplayMode}} primary cluster to a {{replicationDisplayMode}} secondary. The resulting secondary cluster will not
attempt to connect to a primary, but will maintain knowledge of its cluster
ID and can be reconnected to the same set of replication clusters without
wiping local storage.
</p>
<p>
In order to connect the resulting secondary to a new primary, use the <code>Update primary</code> action.
</p>
</div>
<div class="field">
<div class="control">
<ConfirmAction
@buttonClasses="button is-primary"
@confirmTitle="Demote this cluster?"
@confirmMessage="This will affect how your Vault data is replicated."
@confirmButtonText="Demote"
@horizontalPosition="auto-left"
@onConfirmAction={{action "onSubmit" "demote" model.replicationAttrs.modeForUrl}}
data-test-replication-demote="true"
>
Demote cluster
</ConfirmAction>
</div>
</div>