mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 23:59:02 +03:00
Add ability to use the browser back button to close sheets and dialogs (#17932)
This commit is contained in:
@@ -156,7 +156,11 @@ export default function ReviewDetailDialog({
|
||||
|
||||
return (
|
||||
<>
|
||||
<Overlay open={isOpen ?? false} onOpenChange={handleOpenChange}>
|
||||
<Overlay
|
||||
open={isOpen ?? false}
|
||||
onOpenChange={handleOpenChange}
|
||||
enableHistoryBack={true}
|
||||
>
|
||||
<FrigatePlusDialog
|
||||
upload={upload}
|
||||
onClose={() => setUpload(undefined)}
|
||||
|
||||
@@ -187,7 +187,11 @@ export default function SearchDetailDialog({
|
||||
const Description = isDesktop ? DialogDescription : MobilePageDescription;
|
||||
|
||||
return (
|
||||
<Overlay open={isOpen} onOpenChange={handleOpenChange}>
|
||||
<Overlay
|
||||
open={isOpen}
|
||||
onOpenChange={handleOpenChange}
|
||||
enableHistoryBack={true}
|
||||
>
|
||||
<Content
|
||||
className={cn(
|
||||
"scrollbar-container overflow-y-auto",
|
||||
|
||||
Reference in New Issue
Block a user