mirror of https://github.com/portainer/portainer
fix(activitylog): remove export limit and fix search function [BE-12270] (#1232)
parent
68b9fef3f0
commit
19e1cc2fbd
|
@ -25,7 +25,7 @@ export function ActivityLogsView() {
|
|||
limit: tableState.pageSize,
|
||||
sortBy: getSortType(tableState.sortBy?.id),
|
||||
sortDesc: tableState.sortBy?.desc,
|
||||
search: tableState.search,
|
||||
keyword: tableState.search,
|
||||
...(range
|
||||
? {
|
||||
after: seconds(range?.start?.valueOf()),
|
||||
|
|
|
@ -20,7 +20,7 @@ export interface Query {
|
|||
limit: number;
|
||||
sortBy?: SortKey;
|
||||
sortDesc?: boolean;
|
||||
search: string;
|
||||
keyword: string;
|
||||
after?: number;
|
||||
before?: number;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export function useExportMutation() {
|
|||
async function exportActivityLogs(query: Omit<Query, 'limit'>) {
|
||||
try {
|
||||
const { data, headers } = await axios.get<Blob>('/useractivity/logs.csv', {
|
||||
params: { ...query, limit: 2000 },
|
||||
params: { ...query, limit: 0 },
|
||||
responseType: 'blob',
|
||||
headers: {
|
||||
'Content-type': 'text/csv',
|
||||
|
|
Loading…
Reference in New Issue