From 9ed84e7cc6c977c357c4f84687ba909120c2ae17 Mon Sep 17 00:00:00 2001 From: Joshua Ogle Date: Thu, 16 May 2019 14:45:58 -0600 Subject: [PATCH] Remove container tag for ConfirmAction --- .../components/identity/edit-form.hbs | 2 +- ui/app/templates/components/pki-cert-show.hbs | 2 +- ui/app/templates/components/role-aws-edit.hbs | 4 +- ui/app/templates/components/role-pki-edit.hbs | 4 +- .../core/addon/components/confirm-action.js | 4 +- .../templates/components/confirm-action.hbs | 97 ++++++++++--------- .../mode/secondaries/config-edit.hbs | 2 +- 7 files changed, 62 insertions(+), 53 deletions(-) diff --git a/ui/app/templates/components/identity/edit-form.hbs b/ui/app/templates/components/identity/edit-form.hbs index 41be5354ac6d..f4fe37cccedf 100644 --- a/ui/app/templates/components/identity/edit-form.hbs +++ b/ui/app/templates/components/identity/edit-form.hbs @@ -6,7 +6,7 @@ @onConfirmAction={{action "deleteItem" model}} data-test-entity-item-delete="true" > - Delete + Delete {{model.identityType}} diff --git a/ui/app/templates/components/pki-cert-show.hbs b/ui/app/templates/components/pki-cert-show.hbs index 2841dc9a5031..42a6bba30833 100644 --- a/ui/app/templates/components/pki-cert-show.hbs +++ b/ui/app/templates/components/pki-cert-show.hbs @@ -52,7 +52,7 @@ @buttonClasses="button" @onConfirmAction={{action "delete"}} @confirmTitle="Revoke this cert?" - @confirmMessage="This may affect access to Vault data." + @confirmMessage="Any services using this cert may be affected." @confirmButtonText="Revoke" > Revoke diff --git a/ui/app/templates/components/role-aws-edit.hbs b/ui/app/templates/components/role-aws-edit.hbs index bc1712fe3768..0d7d42567f9d 100644 --- a/ui/app/templates/components/role-aws-edit.hbs +++ b/ui/app/templates/components/role-aws-edit.hbs @@ -33,7 +33,7 @@ Generate credentials {{/if}} - {{#if (and model.canGenerate (or model.canDelete model.canUpdate))}} + {{#if (and model.canGenerate (or model.canDelete model.canEdit))}}
{{/if}} {{#if model.canDelete}} @@ -44,7 +44,7 @@ Delete role {{/if}} - {{#if (or model.canUpdate model.canDelete)}} + {{#if model.canEdit}} {{/if}} - {{#if (and (or model.canGenerate model.canSign) (or model.canDelete model.canUpdate))}} + {{#if (and (or model.canGenerate model.canSign) (or model.canDelete model.canEdit))}}
{{/if}} {{#if model.canDelete}} @@ -56,7 +56,7 @@ Delete role {{/if}} - {{#if (or model.canUpdate model.canDelete)}} + {{#if model.canEdit}} - {{/if}} - {{/d.trigger}} - {{#d.content class=(concat "popup-menu-content")}} -
-
-
- - {{if disabled disabledTitle confirmTitle}} +
+ + + {{yield}} + {{#if (eq buttonClasses 'toolbar-link')}} + + {{/if}} + + +
+
+
+ + {{if disabled disabledTitle confirmTitle}} +
+

+ {{if disabled disabledMessage confirmMessage}} +

+
+
+ +
-

- {{if disabled disabledMessage confirmMessage}} -

-
-
- -
-
- {{/d.content}} -{{/basic-dropdown}} + + +
diff --git a/ui/lib/replication/addon/templates/mode/secondaries/config-edit.hbs b/ui/lib/replication/addon/templates/mode/secondaries/config-edit.hbs index 566e5108ac6c..e6c47fbaa749 100644 --- a/ui/lib/replication/addon/templates/mode/secondaries/config-edit.hbs +++ b/ui/lib/replication/addon/templates/mode/secondaries/config-edit.hbs @@ -4,7 +4,7 @@ @buttonClasses="toolbar-link" @confirmMessage="This will affect which data gets replicated to this secondary." @onConfirmAction={{action "saveConfig" model.config true}} - @data-test-delete-mount-config="true" + data-test-delete-mount-config="true" > Delete config