Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAC] Fix scrolling on Obs alerts table #109139

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ export function AlertsTableTGrid(props: AlertsTableTGridProps) {
end: rangeTo,
filters: [],
indexNames,
itemsPerPage: 10,
itemsPerPageOptions: [10, 25, 50],
loadingText: i18n.translate('xpack.observability.alertsTable.loadingTextLabel', {
defaultMessage: 'loading alerts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const EventsContainerLoading = styled.div.attrs(({ className = '' }) => ({
const FullWidthFlexGroup = styled(EuiFlexGroup)<{ $visible: boolean }>`
overflow: hidden;
margin: 0;
min-height: 490px;
display: ${({ $visible }) => ($visible ? 'flex' : 'none')};
`;

Expand All @@ -96,7 +95,6 @@ export interface TGridStandaloneProps {
filterStatus: AlertStatus;
height?: number;
indexNames: string[];
itemsPerPage: number;
itemsPerPageOptions: number[];
query: Query;
onRuleChange?: () => void;
Expand Down Expand Up @@ -127,7 +125,6 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
footerText,
filterStatus,
indexNames,
itemsPerPage,
itemsPerPageOptions,
onRuleChange,
query,
Expand Down Expand Up @@ -282,7 +279,7 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
end,
},
indexNames,
itemsPerPage,
itemsPerPage: itemsPerPageStore,
itemsPerPageOptions,
showCheckboxes: true,
})
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/timelines/public/store/t_grid/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const tGridDefaults: SubsetTGridModel = {
indexNames: [],
isLoading: false,
isSelectAllChecked: false,
itemsPerPage: 25,
itemsPerPage: 50,
itemsPerPageOptions: [10, 25, 50, 100],
loadingEventIds: [],
selectedEventIds: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const AppRoot = React.memo(
end: '',
footerText: 'Events',
filters: [],
itemsPerPage: 50,
itemsPerPageOptions: [1, 2, 3],
loadingText: 'Loading events',
renderCellValue: () => <div data-test-subj="timeline-wrapper">test</div>,
Expand Down