diff --git a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js index 161168de..231632f5 100644 --- a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js +++ b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js @@ -378,7 +378,7 @@ class EditorToolbar extends React.Component { ); }; - renderExistingEntryWorkflowPublishControls = ({ canCreate, canPublish }) => { + renderExistingEntryWorkflowPublishControls = ({ canCreate, canPublish, canDelete }) => { const { unPublish, onDuplicate, isPersisting, t } = this.props; return canPublish || canCreate ? ( @@ -393,7 +393,7 @@ class EditorToolbar extends React.Component { )} > - {canPublish && ( + {canDelete && canPublish && ( {this.renderDeployPreviewControls(t('editor.editorToolbar.deployButtonLabel'))} - {this.renderExistingEntryWorkflowPublishControls({ canCreate, canPublish })} + {this.renderExistingEntryWorkflowPublishControls({ canCreate, canPublish, canDelete })} ); }