Files
vault/ui/lib/core/addon/components/confirmation-modal.hbs
Angel Garbarino 56f793d0c8 🧹 HDS button replacement (#24230)
* namespace things

* kmip

* init and mount-info:

* ssh sign

* replication and remove type button

* fix learn more on replication mode summary

* use dropdown.

* clean up

* Update ui/lib/kv/addon/components/kv-version-dropdown.hbs

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* pr comments

* Update replication-mode-summary.hbs

* blah

* fix

* Update replication-mode-summary.hbs

* add back mount-info

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2023-11-30 09:49:45 -07:00

46 lines
1.3 KiB
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
{{#if @isActive}}
<Hds::Modal id="confirmation-modal" @onClose={{@onClose}} @color="critical" as |M|>
<M.Header data-test-confirmation-modal-title @icon="alert-triangle">
{{@title}}
</M.Header>
<M.Body>
{{yield}}
<div class="has-top-padding-m">
<p class="has-text-weight-semibold is-size-6">
Confirm
</p>
<p class="sub-text has-top-bottom-margin-xxs">Type
<strong>{{this.confirmText}}</strong>
to confirm
{{@toConfirmMsg}}
</p>
<Input
@type="text"
@value={{this.confirmationInput}}
name="confirmationInput"
class="input has-margin-top"
autocomplete="off"
spellcheck="false"
data-test-confirmation-modal-input={{@title}}
/>
</div>
</M.Body>
<M.Footer>
<Hds::ButtonSet>
<Hds::Button
@color="critical"
disabled={{not-eq this.confirmationInput this.confirmText}}
{{on "click" @onConfirm}}
data-test-confirm-button={{@title}}
@text={{or @buttonText "Confirm"}}
/>
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onClose}} data-test-cancel-button />
</Hds::ButtonSet>
</M.Footer>
</Hds::Modal>
{{/if}}