[Command Menu] Refactor layout customization conditional availability [Warning] (#19974)
closes https://discord.com/channels/1130383047699738754/1494312529286004837
This commit is contained in:
@@ -5,7 +5,8 @@ import { type ObjectRecord } from './ObjectRecord';
|
||||
export type CommandMenuContextApi = {
|
||||
pageType: ContextStorePageType;
|
||||
isInSidePanel: boolean;
|
||||
isPageInEditMode: boolean;
|
||||
isDashboardPageLayoutInEditMode: boolean;
|
||||
isLayoutCustomizationModeEnabled: boolean;
|
||||
favoriteRecordIds: string[];
|
||||
isSelectAll: boolean;
|
||||
hasAnySoftDeleteFilterOnView: boolean;
|
||||
|
||||
+2
-1
@@ -6,7 +6,8 @@ const buildContext = (
|
||||
): CommandMenuContextApi => ({
|
||||
pageType: ContextStorePageType.Index,
|
||||
isInSidePanel: false,
|
||||
isPageInEditMode: false,
|
||||
isDashboardPageLayoutInEditMode: false,
|
||||
isLayoutCustomizationModeEnabled: false,
|
||||
favoriteRecordIds: [],
|
||||
isSelectAll: false,
|
||||
hasAnySoftDeleteFilterOnView: false,
|
||||
|
||||
+2
-1
@@ -6,7 +6,8 @@ const buildContext = (
|
||||
): CommandMenuContextApi => ({
|
||||
pageType: ContextStorePageType.Index,
|
||||
isInSidePanel: false,
|
||||
isPageInEditMode: false,
|
||||
isDashboardPageLayoutInEditMode: false,
|
||||
isLayoutCustomizationModeEnabled: false,
|
||||
favoriteRecordIds: [],
|
||||
isSelectAll: false,
|
||||
hasAnySoftDeleteFilterOnView: false,
|
||||
|
||||
Reference in New Issue
Block a user