mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-05 03:21:16 +03:00
clean up
This commit is contained in:
parent
077f4a601a
commit
01d861aad6
@ -127,6 +127,8 @@ export default function ClassificationSelectionDialog({
|
|||||||
</DrawerClose>
|
</DrawerClose>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// keep modal false on desktop to prevent dismissable layer pointer events
|
||||||
|
// issue with dialog auto-close
|
||||||
return (
|
return (
|
||||||
<div className={className ?? "flex"}>
|
<div className={className ?? "flex"}>
|
||||||
<TextEntryDialog
|
<TextEntryDialog
|
||||||
@ -135,8 +137,6 @@ export default function ClassificationSelectionDialog({
|
|||||||
title={t("createCategory.new")}
|
title={t("createCategory.new")}
|
||||||
onSave={(newCat) => onCategorizeImage(newCat)}
|
onSave={(newCat) => onCategorizeImage(newCat)}
|
||||||
/>
|
/>
|
||||||
// keep modal false on desktop to prevent dismissable layer pointer events
|
|
||||||
// issue with dialog auto-close
|
|
||||||
<Selector {...(isDesktop ? { modal: false } : {})}>
|
<Selector {...(isDesktop ? { modal: false } : {})}>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild={isChildButton}>
|
<TooltipTrigger asChild={isChildButton}>
|
||||||
|
|||||||
@ -86,6 +86,8 @@ export default function FaceSelectionDialog({
|
|||||||
</DrawerClose>
|
</DrawerClose>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// keep modal false on desktop to prevent dismissable layer pointer events
|
||||||
|
// issue with dialog auto-close
|
||||||
return (
|
return (
|
||||||
<div className={className ?? "flex"}>
|
<div className={className ?? "flex"}>
|
||||||
{newFace && (
|
{newFace && (
|
||||||
@ -96,8 +98,6 @@ export default function FaceSelectionDialog({
|
|||||||
onSave={(newName) => onTrainAttempt(newName)}
|
onSave={(newName) => onTrainAttempt(newName)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
// keep modal false on desktop to prevent dismissable layer pointer events
|
|
||||||
// issue with dialog auto-close
|
|
||||||
<Selector {...(isDesktop ? { modal: false } : {})}>
|
<Selector {...(isDesktop ? { modal: false } : {})}>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild={isChildButton}>
|
<TooltipTrigger asChild={isChildButton}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user