Create edit dashboard action (#14564)

Closes https://github.com/twentyhq/core-team-issues/issues/1435

Introduced a new pattern to force to register an action or not.
Discussed this with @charlesBochet
This commit is contained in:
Raphaël Bosi
2025-09-17 17:58:26 +02:00
committed by GitHub
parent 1c8dccda01
commit 0750bcaefc
18 changed files with 223 additions and 8 deletions
@@ -0,0 +1,7 @@
import { type PageLayoutWithData } from '~/modules/page-layout/types/pageLayoutTypes';
export const isPageLayoutEmpty = (pageLayout: PageLayoutWithData): boolean => {
return (
pageLayout.tabs.length === 1 && pageLayout.tabs[0].widgets.length === 0
);
};