Check if the result limit has been hit
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@ type LeakResult = {
|
||||
Duration: number;
|
||||
Error: string;
|
||||
Rows: Array<Record<string, string>>;
|
||||
LimitHit: boolean;
|
||||
};
|
||||
|
||||
type GithubResult = {
|
||||
|
||||
@@ -170,6 +170,15 @@
|
||||
result.LeakResult.Duration,
|
||||
)}
|
||||
</p>
|
||||
{#if result.LeakResult.LimitHit}
|
||||
<div role="alert" class="alert alert-soft my-4">
|
||||
<CircleAlert size={20} />
|
||||
<div>
|
||||
<span class="font-semibold">Limit hit!</span> Consider refining
|
||||
your search query for more specific results.
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<Rows {result} />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user