Also show pagination interface for interpreted results

This commit is contained in:
Jason Reed
2020-06-29 12:39:00 -04:00
parent 65aa6928e4
commit 0e3b7a8eb5
2 changed files with 3 additions and 5 deletions

View File

@@ -407,7 +407,7 @@ export class InterfaceManager extends DisposableObject {
database: this._displayedQuery.database,
metadata: this._displayedQuery.query.metadata,
pageNumber,
totalPages: Math.ceil(this._interpretation.sarif.runs[0].results.length / INTERPRETED_RESULTS_PAGE_SIZE),
numPages: Math.ceil(this._interpretation.sarif.runs[0].results.length / INTERPRETED_RESULTS_PAGE_SIZE),
});
}

View File

@@ -112,12 +112,10 @@ export class ResultTables
/**
* Holds if we actually should show pagination interface right now. This is
* still false for the time being when we're viewing alerts.
* true as long as the result sets we're given are marked to permit it.
*/
paginationEnabled(): boolean {
return this.paginationAllowed() &&
this.props.parsedResultSets.selectedTable !== ALERTS_TABLE_NAME &&
this.state.selectedTable !== ALERTS_TABLE_NAME;
return this.paginationAllowed()
}
constructor(props: ResultTablesProps) {