Skip to content

Commit c251cd3

Browse files
fix no results overlay
1 parent 1e88763 commit c251cd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/resultsPanelProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,19 @@ export class KdbResultsViewProvider implements WebviewViewProvider {
499499
maxConcurrentDatasourceRequests: 1,
500500
infiniteInitialRowCount: 10000,
501501
maxBlocksInCache: 10,
502+
overlayNoRowsTemplate: '<span class="ag-overlay-loading-center">No results to show</span>',
502503
datasource: {
503504
rowCount: undefined,
504505
getRows: function(params) {
505506
showOverlay();
506507
const results = message.results;
507508
setTimeout(() => {
508509
const lastRow = results.length;
510+
if (lastRow === 0) {
511+
gridApi.showNoRowsOverlay();
512+
} else {
513+
gridApi.hideOverlay();
514+
}
509515
const rowsThisPage = results.slice(params.startRow, params.endRow);
510516
params.successCallback(rowsThisPage, lastRow);
511517
hideOverlay();

0 commit comments

Comments
 (0)