2019-08-31 20:51:14 -07:00
|
|
|
{{#if hasBlock}}
|
|
|
|
{{yield
|
|
|
|
(hash
|
|
|
|
dismissButtonText=@dismissButtonText
|
|
|
|
confirmButtonText=@confirmButtonText
|
|
|
|
onDismiss=this.onDismiss
|
|
|
|
onConfirm=this.onConfirm
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{#if (and @toggleText this.onDialogToggle)}}
|
|
|
|
<div
|
|
|
|
class="notification-confirm-modal__footer__secondary"
|
|
|
|
>
|
|
|
|
{{input
|
|
|
|
id="notifications-confirmation-toggle-input"
|
|
|
|
type="checkbox"
|
|
|
|
title=@toggleText
|
|
|
|
class="toggle-switch toggle-switch--light"
|
|
|
|
change=(action this.onDialogToggle value="target.checked")
|
|
|
|
}}
|
|
|
|
<label
|
|
|
|
for="notifications-confirmation-toggle-input"
|
|
|
|
class="toggle-button"
|
|
|
|
>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<span
|
|
|
|
class="confirmation-dialog-toggle-label"
|
|
|
|
>
|
|
|
|
{{@toggleText}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (not-eq @dismissButtonText false)}}
|
|
|
|
<button
|
2020-08-26 15:44:50 -07:00
|
|
|
type="button"
|
2019-08-31 20:51:14 -07:00
|
|
|
class="nacho-button--large nacho-button--secondary notification-confirm-modal__footer__dismiss"
|
|
|
|
{{action this.onDismiss}}
|
|
|
|
>
|
|
|
|
{{@dismissButtonText}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (not-eq @confirmButtonText false)}}
|
2020-08-26 15:44:50 -07:00
|
|
|
<button class="nacho-button nacho-button--large-inverse notification-confirm-modal__footer__confirm" {{action this.onConfirm}} type="button">
|
2019-08-31 20:51:14 -07:00
|
|
|
{{@confirmButtonText}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{/if}}
|