Ghost/ghost/admin/app/components/editor/modals/publish-flow
Kevin Ansfield b9707a2b4a Moved logic for publish confirm button text states into backing class (#2397)
refs a021553203

- keeps text and logic together, avoids duplication of button code just for changing the running/success text
- added a `buttonTextMap` to keep the high-level text states in one place
- added `publishType` getter for easier switching between states in other getters and to have one place for the logic
- updated `confirmButtonText` getter and added `confirmRunningText` and `confirmSuccessText` getters that read from the button text map so the pattern used for getting text to pass as arguments in the template is consistent
2022-05-27 11:45:40 +01:00
..
complete-with-email-error.hbs Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
complete-with-email-error.js Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
complete.hbs Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
confirm.hbs Moved logic for publish confirm button text states into backing class (#2397) 2022-05-27 11:45:40 +01:00
confirm.js Moved logic for publish confirm button text states into backing class (#2397) 2022-05-27 11:45:40 +01:00
options.hbs Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
options.js Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00