mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
🐛 Fixed sticky "Unsaved changes" modal when leaving editor
no issue - the unsaved changes confirmation modal could re-appear after leaving the editor and re-opening the same post - remove the `.finally` which assumed the confirm action returns a promise so that the modal is properly closed
This commit is contained in:
parent
f10f7dce22
commit
39c850f4fe
@ -4,9 +4,8 @@ import RSVP from 'rsvp';
|
||||
export default ModalComponent.extend({
|
||||
actions: {
|
||||
confirm() {
|
||||
this.confirm().finally(() => {
|
||||
this.send('closeModal');
|
||||
});
|
||||
this.confirm();
|
||||
this.send('closeModal');
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user