diff --git a/web/core/components/pages/dropdowns/actions.tsx b/web/core/components/pages/dropdowns/actions.tsx index 51b288c0ea..d5bd50835d 100644 --- a/web/core/components/pages/dropdowns/actions.tsx +++ b/web/core/components/pages/dropdowns/actions.tsx @@ -84,7 +84,7 @@ export const PageActions: React.FC = observer((props) => { action: pageOperations.toggleAccess, title: access === EPageAccess.PUBLIC ? "Make private" : "Make public", icon: access === EPageAccess.PUBLIC ? Lock : Globe2, - shouldRender: canCurrentUserChangeAccess, + shouldRender: canCurrentUserChangeAccess && !archived_at, }, { key: "open-in-new-tab", @@ -119,7 +119,7 @@ export const PageActions: React.FC = observer((props) => { action: () => setDeletePageModal(true), title: "Delete", icon: Trash2, - shouldRender: canCurrentUserDeletePage, + shouldRender: canCurrentUserDeletePage && !!archived_at, }, {