Don't show submit to frigate plus card if plus is disabled (#14319)

This commit is contained in:
Josh Hawkins 2024-10-13 12:34:39 -05:00 committed by GitHub
parent e8b2fde753
commit 92ac025e43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -536,6 +536,7 @@ function ObjectSnapshotTab({
/> />
)} )}
</TransformComponent> </TransformComponent>
{search.plus_id !== "not_enabled" && (
<Card className="p-1 text-sm md:p-2"> <Card className="p-1 text-sm md:p-2">
<CardContent className="flex flex-col items-center justify-between gap-3 p-2 md:flex-row"> <CardContent className="flex flex-col items-center justify-between gap-3 p-2 md:flex-row">
<div className={cn("flex flex-col space-y-3")}> <div className={cn("flex flex-col space-y-3")}>
@ -587,6 +588,7 @@ function ObjectSnapshotTab({
</div> </div>
</CardContent> </CardContent>
</Card> </Card>
)}
</div> </div>
</TransformWrapper> </TransformWrapper>
</div> </div>