Ghost/ghost/admin/app/components/editor/modals
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
..
preview Fixed linter errors in editor preview templates 2022-05-25 09:13:08 +01:00
publish-flow Moved logic for publish confirm button text states into backing class (#2397) 2022-05-27 11:45:40 +01:00
preview.hbs Fixed the button positions and spacings for the Publish, Save and Sidebar icons in the editor 2022-05-26 13:47:38 +01:00
preview.js Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
publish-flow.hbs Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
publish-flow.js Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
update-flow.hbs Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00
update-flow.js Renamed editor-labs component directory to editor 2022-05-25 09:13:08 +01:00