mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
f1512d12c2
refs https://github.com/TryGhost/Ghost/issues/7515 - changes to `gh-task-button`: - can take `buttonText` (default: "Save"), `runningText` ("Saving"), `successText` ("Saved"), and `failureText` ("Retry") params - positional param for `buttonText` - default button display can be overridden by passing in a block, in that scenario the component will yield a hash containing all states to be used in this fashion: ``` {{#gh-task-button task=myTask as |task|}} {{if task.isIdle "Save me"}} {{if task.isRunning "Saving"}} {{if task.isSuccess "Thank you!"}} {{if task.isFailure "Nooooooo!"}} {{/gh-task-button}} ``` - update existing uses of `gh-task-button` to match new component signature |
||
---|---|---|
.. | ||
modals | ||
gh-alert-test.js | ||
gh-alerts-test.js | ||
gh-cm-editor-test.js | ||
gh-feature-flag-test.js | ||
gh-file-uploader-test.js | ||
gh-image-uploader-test.js | ||
gh-image-uploader-with-preview-test.js | ||
gh-navigation-test.js | ||
gh-navitem-test.js | ||
gh-navitem-url-input-test.js | ||
gh-notification-test.js | ||
gh-notifications-test.js | ||
gh-profile-image-test.js | ||
gh-search-input-test.js | ||
gh-subscribers-table-test.js | ||
gh-tag-settings-form-test.js | ||
gh-tags-management-container-test.js | ||
gh-task-button-test.js | ||
gh-theme-table-test.js | ||
gh-timezone-select-test.js | ||
gh-trim-focus-input-test.js | ||
gh-validation-status-container-test.js | ||
transfer-owner-test.js |