Skip to content

Commit

Permalink
[desk-tool] Only show publish button if action is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Dec 3, 2019
1 parent 318d3c5 commit 85a5ea8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function getDocumentPaneFooterActions(props) {
const isNonexistent = !draft && !published

const actions = [
{
enabledActions.includes('publish') && {
color: 'primary',
disabled:
isCreatingDraft ||
Expand Down

0 comments on commit 85a5ea8

Please sign in to comment.