mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
30b23f2a7c
no issue - when confirming email send, after initial save in, poll every second for a maximum of 10 seconds and check the status of the email - if it's `'success'` close the modal immediately - if it's `'failure'` switch the confirm modal to an error state - if the save fails for some other reason (validation, server error) close the modal immediately and let the normal editor error handling do it's thing - fixed confirm modal not appearing when retrying a save after a post validation failed - show email status in post status area - `"and sending to x members"` when email is pending or submitting - `"and sent to x members"` once email is fully submitted
7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
export default class EmailFailedError extends Error {
|
|
constructor(message) {
|
|
super(message);
|
|
this.name = 'EmailFailedError';
|
|
}
|
|
}
|