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: 'Updated',
draft: 'Saved',
scheduled: 'Scheduled'
scheduled: 'Scheduled',
sent: 'Sent'
},
draft: {
published: 'Published',
draft: 'Saved',
scheduled: 'Scheduled'
scheduled: 'Scheduled',
sent: 'Sent'
},
scheduled: {
scheduled: 'Updated',
draft: 'Unscheduled',
published: 'Published'
published: 'Published',
sent: 'Sent'
},
sent: {
sent: 'Sent'
}
}
}