0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed crashing transition when email only post is sent

refs https://github.com/TryGhost/Team/issues/954

- The transition values wever missing for new "sent" email status and caused a 500 error to be displayed even though it had nothing to do with server errors
- There will be more tweaks to this in future iterations, this is a stop gap solution to have a working UI
This commit is contained in:
Naz 2021-08-13 18:17:47 +04:00
parent b5d1d5918c
commit 49b47b7016

View file

@ -67,17 +67,23 @@ const messageMap = {
published: { published: {
published: 'Updated', published: 'Updated',
draft: 'Saved', draft: 'Saved',
scheduled: 'Scheduled' scheduled: 'Scheduled',
sent: 'Sent'
}, },
draft: { draft: {
published: 'Published', published: 'Published',
draft: 'Saved', draft: 'Saved',
scheduled: 'Scheduled' scheduled: 'Scheduled',
sent: 'Sent'
}, },
scheduled: { scheduled: {
scheduled: 'Updated', scheduled: 'Updated',
draft: 'Unscheduled', draft: 'Unscheduled',
published: 'Published' published: 'Published',
sent: 'Sent'
},
sent: {
sent: 'Sent'
} }
} }
} }