Skip to content

Commit

Permalink
Update actions order in site editor for template and template parts (#…
Browse files Browse the repository at this point in the history
…61803)

Co-authored-by: abhi3315 <[email protected]>
Co-authored-by: jameskoster <[email protected]>
  • Loading branch information
3 people authored May 20, 2024
1 parent 51fbd4b commit 91b7be4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/editor/src/components/post-actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1189,11 +1189,7 @@ export function usePostActions( postType, onActionPerformed ) {
}

const actions = [
isTemplateOrTemplatePart && resetTemplateAction,
postTypeObject?.viewable && viewPostAction,
! isTemplateOrTemplatePart && restorePostAction,
isTemplateOrTemplatePart && deleteTemplateAction,
! isTemplateOrTemplatePart && permanentlyDeletePostAction,
postRevisionsAction,
process.env.IS_GUTENBERG_PLUGIN
? ! isTemplateOrTemplatePart &&
Expand All @@ -1203,6 +1199,10 @@ export function usePostActions( postType, onActionPerformed ) {
! isTemplateOrTemplatePart && renamePostAction,
isTemplateOrTemplatePart && renameTemplateAction,
isPattern && exportPatternAsJSONAction,
isTemplateOrTemplatePart && resetTemplateAction,
! isTemplateOrTemplatePart && restorePostAction,
isTemplateOrTemplatePart && deleteTemplateAction,
! isTemplateOrTemplatePart && permanentlyDeletePostAction,
isPattern && deletePatternAction,
! isTemplateOrTemplatePart && trashPostAction,
].filter( Boolean );
Expand Down

0 comments on commit 91b7be4

Please sign in to comment.