Always show new entries as unsaved
This commit is contained in:
parent
9b93876484
commit
01f5cfa6e1
@ -332,6 +332,7 @@ export class EditorToolbar extends React.Component {
|
|||||||
onLogoutClick,
|
onLogoutClick,
|
||||||
t,
|
t,
|
||||||
editorBackLink,
|
editorBackLink,
|
||||||
|
isNewEntry
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -344,7 +345,7 @@ export class EditorToolbar extends React.Component {
|
|||||||
collectionLabel: collection.get('label'),
|
collectionLabel: collection.get('label'),
|
||||||
})}
|
})}
|
||||||
</BackCollection>
|
</BackCollection>
|
||||||
{hasChanged ? (
|
{isNewEntry || hasChanged ? (
|
||||||
<BackStatusChanged key="back-changed">{t('editor.editorToolbar.unsavedChanges')}</BackStatusChanged>
|
<BackStatusChanged key="back-changed">{t('editor.editorToolbar.unsavedChanges')}</BackStatusChanged>
|
||||||
) : (
|
) : (
|
||||||
<BackStatusUnchanged key="back-unchanged">{t('editor.editorToolbar.changesSaved')}</BackStatusUnchanged>
|
<BackStatusUnchanged key="back-unchanged">{t('editor.editorToolbar.changesSaved')}</BackStatusUnchanged>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user