From 85a5ea8d409da6907809ce111ce6eadf95d621b2 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Sat, 30 Nov 2019 12:11:26 -0800 Subject: [PATCH] [desk-tool] Only show publish button if action is enabled --- .../@sanity/desk-tool/src/pane/documentPaneFooterActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js b/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js index 3c4181a07e7..1e2bcc51318 100644 --- a/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js +++ b/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js @@ -20,7 +20,7 @@ export function getDocumentPaneFooterActions(props) { const isNonexistent = !draft && !published const actions = [ - { + enabledActions.includes('publish') && { color: 'primary', disabled: isCreatingDraft ||