2020-01-02 17:13:36 +01:00
|
|
|
<BsButton
|
|
|
|
@type="primary"
|
2023-11-05 12:19:47 +01:00
|
|
|
{{!
|
|
|
|
Due to a bug in Ember, conditional modifiers cannot be used with the "on"
|
|
|
|
modifier. Need to always apply the modifier and fallback to a noop function
|
|
|
|
(returned by noop helper) instead of only applying the modifier when needed.
|
|
|
|
See https://github.com/emberjs/ember.js/issues/19869.
|
|
|
|
}}
|
|
|
|
{{on "click" (if @onClick @onClick (noop))}}
|
2020-01-02 17:13:36 +01:00
|
|
|
class="cr-steps-bottom-nav__button cr-steps-bottom-nav__next-button next"
|
2023-11-04 14:54:30 +01:00
|
|
|
type="submit"
|
2020-01-02 17:13:36 +01:00
|
|
|
...attributes
|
|
|
|
>
|
|
|
|
<span class="cr-steps-bottom-nav__label">
|
2023-11-05 12:19:47 +01:00
|
|
|
{{#if (has-block)}}
|
|
|
|
{{yield}}
|
|
|
|
{{else}}
|
|
|
|
{{t "action.save"}}
|
|
|
|
{{/if}}
|
2020-01-02 17:13:36 +01:00
|
|
|
</span>
|
|
|
|
|
|
|
|
{{#if @isPending}}
|
|
|
|
<LoadingSpinner />
|
|
|
|
{{else}}
|
|
|
|
<span class="cr-steps-bottom-nav__icon oi oi-circle-check"></span>
|
|
|
|
{{/if}}
|
|
|
|
</BsButton>
|