Fix filter args (#13718)

* Fix filter args in events

* Fix export arg

* Don'
t fail

* Fix filter buttons

* Fix right click

* Formatting
This commit is contained in:
Nicolas Mowen
2024-09-13 07:25:29 -06:00
committed by GitHub
parent 90c1cc3e3b
commit a1fd29b34b
9 changed files with 88 additions and 18 deletions

View File

@@ -135,11 +135,13 @@ export function AnimatedEventCard({
<div
className="size-full cursor-pointer overflow-hidden rounded md:rounded-lg"
onClick={onOpenReview}
onAuxClick={() =>
window
.open(`${baseUrl}review?id=${event.id}`, "_blank")
?.focus()
}
onAuxClick={(e) => {
if (e.button === 1) {
window
.open(`${baseUrl}review?id=${event.id}`, "_blank")
?.focus();
}
}}
>
{!alertVideos ? (
<img

View File

@@ -159,7 +159,7 @@ export default function ExportCard({
className="cursor-pointer rounded-md bg-gray-500 bg-gradient-to-br from-gray-400 to-gray-500"
onClick={() =>
shareOrCopy(
`${baseUrl}exports?id=${exportedRecording.id}`,
`${baseUrl}export?id=${exportedRecording.id}`,
exportedRecording.name.replaceAll("_", " "),
)
}