|
|
@ -60,6 +60,9 @@ const BrowseDashboardsPage = memo(() => { |
|
|
|
if (!isSearching && searchState.result) { |
|
|
|
if (!isSearching && searchState.result) { |
|
|
|
stateManager.setState({ result: undefined, includePanels: undefined }); |
|
|
|
stateManager.setState({ result: undefined, includePanels: undefined }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isSearching && searchState.result?.totalRows === 0) { |
|
|
|
|
|
|
|
reportInteraction('grafana_empty_state_shown', { source: 'browse_dashboards' }); |
|
|
|
|
|
|
|
} |
|
|
|
}, [isSearching, searchState.result, stateManager]); |
|
|
|
}, [isSearching, searchState.result, stateManager]); |
|
|
|
|
|
|
|
|
|
|
|
const { data: folderDTO } = useGetFolderQuery(folderUID ?? skipToken); |
|
|
|
const { data: folderDTO } = useGetFolderQuery(folderUID ?? skipToken); |
|
|
@ -114,7 +117,6 @@ const BrowseDashboardsPage = memo(() => { |
|
|
|
origin: window.location.pathname === getConfig().appSubUrl + '/dashboards' ? 'Dashboards' : 'Folder view', |
|
|
|
origin: window.location.pathname === getConfig().appSubUrl + '/dashboards' ? 'Dashboards' : 'Folder view', |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Page |
|
|
|
<Page |
|
|
|
navId="dashboards/browse" |
|
|
|
navId="dashboards/browse" |
|
|
|