0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Disable "Create" button after first click in "Create newsletter" modal

ref https://linear.app/ghost/issue/DES-505/double-click-on-newsletter-create-button-closes-the-modal

- It was possible to click this button again after the first click, which would close the modal and then open the "Edit newsletter" modal, which is confusing for the user. The button is now both disabled and in the loading state after the first click.
This commit is contained in:
Djordje Vlaisavljevic 2025-01-07 16:49:19 +00:00
parent 1d59399b41
commit 30a60d903d

View file

@ -71,6 +71,7 @@ const AddNewsletterModal: React.FC<RoutingModalProps> = () => {
}} }}
backDropClick={false} backDropClick={false}
okColor='black' okColor='black'
okDisabled={saveState === 'saving'}
okLabel='Create' okLabel='Create'
okLoading={saveState === 'saving'} okLoading={saveState === 'saving'}
size='sm' size='sm'