mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 05:46:32 +08:00
fix: maintain existing pagination configs (#4484)
* fix: maintain existing pagination configs * fix: pass pagination info services table * fix: general setting - cloud - add email mailto link
This commit is contained in:
parent
ac835c80e9
commit
f5b5a9a657
@ -73,19 +73,12 @@ function ResizeTable({
|
|||||||
}
|
}
|
||||||
}, [columns]);
|
}, [columns]);
|
||||||
|
|
||||||
const paginationConfig = {
|
|
||||||
hideOnSinglePage: true,
|
|
||||||
showTotal: (total: number, range: number[]): string =>
|
|
||||||
`${range[0]}-${range[1]} of ${total} items`,
|
|
||||||
...tableParams.pagination,
|
|
||||||
};
|
|
||||||
|
|
||||||
return onDragColumn ? (
|
return onDragColumn ? (
|
||||||
<ReactDragListView.DragColumn {...dragColumnParams} onDragEnd={onDragColumn}>
|
<ReactDragListView.DragColumn {...dragColumnParams} onDragEnd={onDragColumn}>
|
||||||
<Table {...tableParams} pagination={paginationConfig} />
|
<Table {...tableParams} />
|
||||||
</ReactDragListView.DragColumn>
|
</ReactDragListView.DragColumn>
|
||||||
) : (
|
) : (
|
||||||
<Table {...tableParams} pagination={paginationConfig} />
|
<Table {...tableParams} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ export default function GeneralSettingsCloud(): JSX.Element {
|
|||||||
<Card className="general-settings-container">
|
<Card className="general-settings-container">
|
||||||
<Info size={16} />
|
<Info size={16} />
|
||||||
<Typography.Text>
|
<Typography.Text>
|
||||||
Please email us or connect with us via intercom support to change the
|
Please <a href="mailto:cloud-support@signoz.io"> email us </a> or connect
|
||||||
retention period.
|
with us via intercom support to change the retention period.
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
@ -91,6 +91,11 @@ function ServiceMetricTable({
|
|||||||
<ResourceAttributesFilter />
|
<ResourceAttributesFilter />
|
||||||
|
|
||||||
<ResizeTable
|
<ResizeTable
|
||||||
|
pagination={{
|
||||||
|
defaultPageSize: 10,
|
||||||
|
showTotal: (total: number, range: number[]): string =>
|
||||||
|
`${range[0]}-${range[1]} of ${total} items`,
|
||||||
|
}}
|
||||||
columns={tableColumns}
|
columns={tableColumns}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
dataSource={services}
|
dataSource={services}
|
||||||
|
@ -49,6 +49,11 @@ function ServiceTraceTable({
|
|||||||
<ResourceAttributesFilter />
|
<ResourceAttributesFilter />
|
||||||
|
|
||||||
<ResizeTable
|
<ResizeTable
|
||||||
|
pagination={{
|
||||||
|
defaultPageSize: 10,
|
||||||
|
showTotal: (total: number, range: number[]): string =>
|
||||||
|
`${range[0]}-${range[1]} of ${total} items`,
|
||||||
|
}}
|
||||||
columns={tableColumns}
|
columns={tableColumns}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
dataSource={services}
|
dataSource={services}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user