Don't show frigate+ button for audio / custom events (#7203)

This commit is contained in:
Nicolas Mowen 2023-07-18 07:41:45 -06:00 committed by GitHub
parent c5b8d13beb
commit 91aadb6044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,7 +389,7 @@ export default function Events({ path, ...props }) {
download
/>
)}
{downloadEvent.end_time && downloadEvent.has_snapshot && !downloadEvent.plus_id && (
{(event?.data?.type || "object") == "object" && downloadEvent.end_time && downloadEvent.has_snapshot && !downloadEvent.plus_id && (
<MenuItem
icon={UploadPlus}
label={uploading.includes(downloadEvent.id) ? 'Uploading...' : 'Send to Frigate+'}
@ -637,7 +637,7 @@ export default function Events({ path, ...props }) {
</div>
</div>
<div class="hidden sm:flex flex-col justify-end mr-2">
{event.end_time && event.has_snapshot && (
{event.end_time && event.has_snapshot && (event?.data?.type || "object") == "object" && (
<Fragment>
{event.plus_id ? (
<div className="uppercase text-xs underline">