From 28104eea476235deee4e507634fda02e75ce04a5 Mon Sep 17 00:00:00 2001 From: Chelsea Shaw Date: Tue, 2 Jun 2020 11:08:24 -0500 Subject: [PATCH 1/4] Refactor Replication Action: Promote to use modal flow --- .../components/replication-action-promote.hbs | 173 ++++++++---------- 1 file changed, 79 insertions(+), 94 deletions(-) diff --git a/ui/lib/core/addon/templates/components/replication-action-promote.hbs b/ui/lib/core/addon/templates/components/replication-action-promote.hbs index 032acf2a867a..6dd57bb8042d 100644 --- a/ui/lib/core/addon/templates/components/replication-action-promote.hbs +++ b/ui/lib/core/addon/templates/components/replication-action-promote.hbs @@ -1,26 +1,65 @@ -{{#if (and (eq replicationMode 'dr') (eq model.replicationAttrs.modeForUrl 'secondary'))}} -
+
+
+

+ Promote cluster +

- This cluster is currently running as a DR Replication Secondary. - Promote the cluster to a primary by entering DR Operation Token. + Promote this cluster to a {{replicationDisplayMode}} primary

-
- -
- {{input class="input" id="dr_operation_token" name="dr_operation_token" value=dr_operation_token}} +
+ +
+ +
+
+ + + + +
+ + +
+
From 9bbaca3c54e6e602a2c0f156b024d6e915b50653 Mon Sep 17 00:00:00 2001 From: Chelsea Shaw Date: Tue, 2 Jun 2020 12:22:22 -0500 Subject: [PATCH 2/4] Remove options toggle from promote modal --- .../components/replication-action-promote.hbs | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/ui/lib/core/addon/templates/components/replication-action-promote.hbs b/ui/lib/core/addon/templates/components/replication-action-promote.hbs index 6dd57bb8042d..9befb70ad83d 100644 --- a/ui/lib/core/addon/templates/components/replication-action-promote.hbs +++ b/ui/lib/core/addon/templates/components/replication-action-promote.hbs @@ -39,29 +39,19 @@ Vault Replication is not designed for active-active usage. Enabling two primaries should never be done, as it can lead to data loss if they or their secondaries are ever reconnected. If the cluster has a primary, be sure to demote it before promoting a secondary.

- {{#if (eq replicationDisplayMode "DR")}}
+ {{#if (eq replicationDisplayMode "DR")}}
-
- -
- {{/if}} - {{#if (or (eq replicationDisplayMode "Performance") showOptions)}} -
+ {{/if}}
-
- {{/if}} -