github.com/manicqin/nomad@v0.9.5/ui/app/templates/components/two-step-button.hbs (about)

     1  {{#if isIdle}}
     2    <button
     3      data-test-idle-button
     4      type="button"
     5      class="button is-danger is-outlined is-important is-small"
     6      disabled={{disabled}}
     7      onclick={{action "promptForConfirmation"}}>
     8      {{idleText}}
     9    </button>
    10  {{else if isPendingConfirmation}}
    11    <span data-test-confirmation-message class="confirmation-text">{{confirmationMessage}}</span>
    12    <button
    13      data-test-cancel-button
    14      type="button"
    15      class="button is-dark is-outlined is-small"
    16      disabled={{awaitingConfirmation}}
    17      onclick={{action (queue
    18        (action "setToIdle")
    19        (action onCancel)
    20      )}}>
    21      {{cancelText}}
    22    </button>
    23    <button
    24      data-test-confirm-button
    25      class="button is-danger is-small {{if awaitingConfirmation "is-loading"}}"
    26      disabled={{awaitingConfirmation}}
    27      onclick={{action "confirm"}}>
    28      {{confirmText}}
    29    </button>
    30  {{/if}}