mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Fixed exit route on offers modal (#19126)
no issue - when clicking outside the Edit or Add modal, it would clear the modal, but not the route. This modifies the route to clear as well.
This commit is contained in:
parent
62b71fb4c0
commit
d729e7aa21
@ -536,6 +536,9 @@ const AddOfferModal = () => {
|
||||
href={href}
|
||||
/>;
|
||||
return <PreviewModalContent
|
||||
afterClose={() => {
|
||||
updateRoute('offers');
|
||||
}}
|
||||
cancelLabel='Cancel'
|
||||
deviceSelector={false}
|
||||
dirty={saveState === 'unsaved'}
|
||||
|
@ -259,6 +259,9 @@ const EditOfferModal: React.FC<{id: string}> = ({id}) => {
|
||||
/>;
|
||||
|
||||
return offerById ? <PreviewModalContent
|
||||
afterClose={() => {
|
||||
updateRoute('offers');
|
||||
}}
|
||||
deviceSelector={false}
|
||||
dirty={saveState === 'unsaved'}
|
||||
height='full'
|
||||
|
Loading…
Reference in New Issue
Block a user