Skip to content

Commit

Permalink
Don't show frigate+ button for audio / custom events
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jul 18, 2023
1 parent c5b8d13 commit 8e1d007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/routes/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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+'}
Expand Down Expand Up @@ -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">
Expand Down

0 comments on commit 8e1d007

Please sign in to comment.