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:
parent
1d59399b41
commit
30a60d903d
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ const AddNewsletterModal: React.FC<RoutingModalProps> = () => {
|
|||
}}
|
||||
backDropClick={false}
|
||||
okColor='black'
|
||||
okDisabled={saveState === 'saving'}
|
||||
okLabel='Create'
|
||||
okLoading={saveState === 'saving'}
|
||||
size='sm'
|
||||
|
|
Loading…
Add table
Reference in a new issue