mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
nit: also show the total number of results in the 'Displaying ...' dialog
This commit is contained in:
parent
9b1664d59e
commit
0240051a96
1 changed files with 2 additions and 2 deletions
|
|
@ -155,8 +155,8 @@ export default function SearchPage() {
|
||||||
{
|
{
|
||||||
isLoading ? (
|
isLoading ? (
|
||||||
<p className="text-sm font-medium">Loading...</p>
|
<p className="text-sm font-medium">Loading...</p>
|
||||||
) : fileMatches.length > 0 ? (
|
) : fileMatches.length > 0 && searchResponse ? (
|
||||||
<p className="text-sm font-medium">{`[${searchDurationMs} ms] Displaying ${numMatches} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}</p>
|
<p className="text-sm font-medium">{`[${searchDurationMs} ms] Displaying ${numMatches} of ${searchResponse.Result.MatchCount} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}</p>
|
||||||
) : (
|
) : (
|
||||||
<p className="text-sm font-medium">No results</p>
|
<p className="text-sm font-medium">No results</p>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue