From 44fb2fb00dbc471cd3bb6c4026dc8ebc3288d04e Mon Sep 17 00:00:00 2001 From: Bartholomew Date: Thu, 27 Dec 2018 05:47:28 +0100 Subject: [PATCH] fix(netlify-cms-core): workflow hide delete publish entry button (#1971) --- .../netlify-cms-core/src/components/Editor/EditorToolbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js index a988efa9..81c4ce80 100644 --- a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js +++ b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js @@ -253,6 +253,7 @@ class EditorToolbar extends React.Component { onPersist, onDelete, onDeleteUnpublishedChanges, + showDelete, hasChanged, hasUnpublishedChanges, isPersisting, @@ -275,7 +276,7 @@ class EditorToolbar extends React.Component { hasChanged && onPersist()}> {isPersisting ? t('editor.editorToolbar.saving') : t('editor.editorToolbar.save')} , - isNewEntry || !deleteLabel ? null : ( + !showDelete && !hasUnpublishedChanges && !isModification ? null : (