Skip to content

Commit

Permalink
JNG-5889 bulk detect hidden by
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Aug 22, 2024
1 parent 936f4ff commit 4272625
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export function EagerTable<T extends GridValidRowModel, TStored extends T, S ext
<GridToolbarContainer>
{toolBarActions.map((toolBarAction: ToolBarActionProps<T>) =>
actions[toolBarAction.name] &&
toolBarAction.enabled(data, selectionModel, ownerData, isFormUpdateable) ? (
toolBarAction.enabled(data, selectionModel, getSelectedRows(), ownerData, isFormUpdateable) ? (
<Button
key={toolBarAction.id}
id={toolBarAction.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ export function LazyTable<T extends GridValidRowModel, TStored extends T, S exte
<GridToolbarContainer>
{toolBarActions.map((toolBarAction: ToolBarActionProps<T>) =>
actions[toolBarAction.name] &&
toolBarAction.enabled(data, selectionModel, ownerData, isFormUpdateable) ? (
toolBarAction.enabled(data, selectionModel, getSelectedRows(), ownerData, isFormUpdateable) ? (
<Button
key={toolBarAction.id}
id={toolBarAction.id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => true,
Expand All @@ -296,6 +297,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => true,
Expand All @@ -311,6 +313,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => true,
Expand All @@ -326,6 +329,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => true,
Expand All @@ -341,6 +345,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => true,
Expand All @@ -356,6 +361,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => true,
Expand All @@ -371,6 +377,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => data.length > 0,
Expand All @@ -386,6 +393,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => selectionModel.length > 0,
Expand All @@ -401,6 +409,7 @@ export function ViewGalaxyTableTableComponent(props: ViewGalaxyTableTableCompone
enabled: (
data: ViewGalaxyStored[],
selectionModel: GridRowSelectionModel,
selectedRows: ViewGalaxyStored[],
ownerData?: any,
isFormUpdateable?: () => boolean,
): boolean => selectionModel.length > 0,
Expand Down

0 comments on commit 4272625

Please sign in to comment.