diff --git a/src/components/EntryEditor/EntryEditor.js b/src/components/EntryEditor/EntryEditor.js index b0ceacf4..fdde5d90 100644 --- a/src/components/EntryEditor/EntryEditor.js +++ b/src/components/EntryEditor/EntryEditor.js @@ -47,7 +47,7 @@ class EntryEditor extends Component { fieldsErrors, getAsset, onChange, - hasChanged, + enableSave, showDelete, onDelete, onValidate, @@ -132,7 +132,7 @@ class EntryEditor extends Component { onCancelEdit={onCancelEdit} onDelete={onDelete} showDelete={showDelete} - hasChanged={hasChanged} + enableSave={enableSave} /> @@ -151,7 +151,7 @@ EntryEditor.propTypes = { onChange: PropTypes.func.isRequired, onValidate: PropTypes.func.isRequired, onPersist: PropTypes.func.isRequired, - hasChanged: PropTypes.bool.isRequired, + enableSave: PropTypes.bool.isRequired, showDelete: PropTypes.bool.isRequired, onDelete: PropTypes.func.isRequired, onRemoveAsset: PropTypes.func.isRequired, diff --git a/src/components/EntryEditor/EntryEditorToolbar.js b/src/components/EntryEditor/EntryEditorToolbar.js index 204bad6e..022e78ac 100644 --- a/src/components/EntryEditor/EntryEditorToolbar.js +++ b/src/components/EntryEditor/EntryEditorToolbar.js @@ -5,12 +5,12 @@ const EntryEditorToolbar = ( { isPersisting, onPersist, - hasChanged, + enableSave, showDelete, onDelete, onCancelEdit, }) => { - const disabled = !hasChanged || isPersisting; + const disabled = !enableSave || isPersisting; return (