mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-19 14:48:22 +03:00
Add retry button for image generation
This commit is contained in:
parent
daab99e692
commit
b3b990b636
@ -367,10 +367,13 @@ export default function Step3ChooseExamples({
|
|||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{!unknownImages || unknownImages.length === 0 ? (
|
{!unknownImages || unknownImages.length === 0 ? (
|
||||||
<div className="flex h-[40vh] items-center justify-center">
|
<div className="flex h-[40vh] flex-col items-center justify-center gap-4">
|
||||||
<p className="text-muted-foreground">
|
<p className="text-muted-foreground">
|
||||||
{t("wizard.step3.noImages")}
|
{t("wizard.step3.noImages")}
|
||||||
</p>
|
</p>
|
||||||
|
<Button onClick={generateExamples} variant="select">
|
||||||
|
{t("wizard.step3.retryGenerate")}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
) : allImagesClassified && isProcessing ? (
|
) : allImagesClassified && isProcessing ? (
|
||||||
<div className="flex h-[40vh] flex-col items-center justify-center gap-4">
|
<div className="flex h-[40vh] flex-col items-center justify-center gap-4">
|
||||||
@ -388,9 +391,7 @@ export default function Step3ChooseExamples({
|
|||||||
key={imageName}
|
key={imageName}
|
||||||
className={cn(
|
className={cn(
|
||||||
"aspect-square cursor-pointer overflow-hidden rounded-lg border-2 bg-background transition-all",
|
"aspect-square cursor-pointer overflow-hidden rounded-lg border-2 bg-background transition-all",
|
||||||
isSelected
|
isSelected && "border-selected ring-2 ring-selected",
|
||||||
? "border-selected ring-2 ring-selected"
|
|
||||||
: "border-border hover:border-primary",
|
|
||||||
)}
|
)}
|
||||||
onClick={() => toggleImageSelection(imageName)}
|
onClick={() => toggleImageSelection(imageName)}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user