2018-04-18 19:19:35 +00:00
|
|
|
{{#if isIdle}}
|
2018-07-03 22:24:26 +00:00
|
|
|
<button data-test-idle-button type="button" class="button is-danger is-outlined is-important is-small" onclick={{action "promptForConfirmation"}}>
|
2018-04-18 19:19:35 +00:00
|
|
|
{{idleText}}
|
|
|
|
</button>
|
|
|
|
{{else if isPendingConfirmation}}
|
2018-04-18 20:02:58 +00:00
|
|
|
<span data-test-confirmation-message class="confirmation-text">{{confirmationMessage}}</span>
|
2018-08-24 20:41:14 +00:00
|
|
|
<button
|
|
|
|
data-test-cancel-button
|
|
|
|
type="button"
|
|
|
|
class="button is-dark is-outlined is-small"
|
|
|
|
disabled={{awaitingConfirmation}}
|
|
|
|
onclick={{action (queue
|
|
|
|
(action "setToIdle")
|
|
|
|
(action onCancel)
|
|
|
|
)}}>
|
2018-04-18 19:19:35 +00:00
|
|
|
{{cancelText}}
|
|
|
|
</button>
|
2018-08-24 20:41:14 +00:00
|
|
|
<button
|
|
|
|
data-test-confirm-button
|
|
|
|
class="button is-danger is-small {{if awaitingConfirmation "is-loading"}}"
|
|
|
|
disabled={{awaitingConfirmation}}
|
2018-08-24 21:02:13 +00:00
|
|
|
onclick={{action "confirm"}}>
|
2018-04-18 19:19:35 +00:00
|
|
|
{{confirmText}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|