Fixed: (History) Save limit and offset in history data

This commit is contained in:
Bogdan
2023-07-07 16:19:45 +03:00
parent e68b45636e
commit 21cc96d683
7 changed files with 86 additions and 35 deletions
+8 -7
View File
@@ -66,7 +66,7 @@ class HistoryRow extends Component {
data
} = this.props;
const { query, queryType } = data;
const { query, queryType, limit, offset } = data;
let searchQuery = query;
let categories = [];
@@ -111,7 +111,7 @@ class HistoryRow extends Component {
searchQuery += `${searchParams}`;
}
this.props.onSearchPress(searchQuery, indexer.id, categories, queryType);
this.props.onSearchPress(searchQuery, indexer.id, categories, queryType, parseInt(limit), parseInt(offset));
};
onDetailsPress = () => {
@@ -312,6 +312,12 @@ class HistoryRow extends Component {
key={name}
className={styles.details}
>
<IconButton
name={icons.INFO}
onPress={this.onDetailsPress}
title={translate('HistoryDetails')}
/>
{
eventType === 'indexerQuery' ?
<IconButton
@@ -321,11 +327,6 @@ class HistoryRow extends Component {
/> :
null
}
<IconButton
name={icons.INFO}
onPress={this.onDetailsPress}
title={translate('HistoryDetails')}
/>
</TableRowCell>
);
}