github.com/emate/nomad@v0.8.2-wo-binpacking/ui/app/templates/components/two-step-button.hbs (about)

     1  {{#if isIdle}}
     2    <button data-test-idle-button type="button" class="button is-warning is-small is-inline" onclick={{action "promptForConfirmation"}}>
     3      {{idleText}}
     4    </button>
     5  {{else if isPendingConfirmation}}
     6    <span data-test-confirmation-message class="confirmation-text">{{confirmationMessage}}</span>
     7    <button data-test-cancel-button type="button" class="button is-dark is-outlined is-small is-inline" onclick={{action (queue
     8      (action "setToIdle")
     9      (action onCancel)
    10    )}}>
    11      {{cancelText}}
    12    </button>
    13    <button data-test-confirm-button class="button is-danger is-small is-inline" onclick={{action (queue
    14      (action "setToIdle")
    15      (action onConfirm)
    16    )}}>
    17      {{confirmText}}
    18    </button>
    19  {{/if}}