From 77c7f31880d58c8b81451eff4d8cadd30554b802 Mon Sep 17 00:00:00 2001 From: Chelsea Shaw Date: Tue, 2 Jun 2020 14:07:06 -0500 Subject: [PATCH] Refactor Replication Action: Promote to use modal flow (#9122) --- .../components/replication-action-promote.hbs | 172 +++++++----------- 1 file changed, 70 insertions(+), 102 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..fc8a211ad5a2 100644 --- a/ui/lib/core/addon/templates/components/replication-action-promote.hbs +++ b/ui/lib/core/addon/templates/components/replication-action-promote.hbs @@ -1,28 +1,56 @@ -{{#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}} -
-
- - {{#if showOptions}} -
+
+ +
+ +
+
+ + + + +