Always show new entries as unsaved

This commit is contained in:
Daniel Lautzenheiser 2022-10-10 09:42:15 -04:00
parent 9b93876484
commit 01f5cfa6e1

View File

@ -332,6 +332,7 @@ export class EditorToolbar extends React.Component {
onLogoutClick,
t,
editorBackLink,
isNewEntry
} = this.props;
return (
@ -344,7 +345,7 @@ export class EditorToolbar extends React.Component {
collectionLabel: collection.get('label'),
})}
</BackCollection>
{hasChanged ? (
{isNewEntry || hasChanged ? (
<BackStatusChanged key="back-changed">{t('editor.editorToolbar.unsavedChanges')}</BackStatusChanged>
) : (
<BackStatusUnchanged key="back-unchanged">{t('editor.editorToolbar.changesSaved')}</BackStatusUnchanged>