mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-21 03:41:55 +03:00
change desktop and mobile edit camera groups icon to pencil and add desktop tooltip
This commit is contained in:
parent
b3f7aa124b
commit
9107c9581d
@ -5,6 +5,7 @@
|
||||
"showAll": "Show all camera groups",
|
||||
"showLess": "Show less",
|
||||
"edit": "Edit Camera Group",
|
||||
"editGroups": "Edit Camera Groups",
|
||||
"delete": {
|
||||
"label": "Delete Camera Group",
|
||||
"confirm": {
|
||||
|
||||
@ -283,7 +283,7 @@ export function CameraGroupSelector({ className }: CameraGroupSelectorProps) {
|
||||
afterSelect?.();
|
||||
}}
|
||||
>
|
||||
<LuPlus className="size-5 text-primary" />
|
||||
<LuPencil className="size-5 text-primary" />
|
||||
</Button>,
|
||||
);
|
||||
}
|
||||
@ -366,14 +366,25 @@ export function CameraGroupSelector({ className }: CameraGroupSelectorProps) {
|
||||
})}
|
||||
|
||||
{isAdmin && (
|
||||
<Button
|
||||
className="bg-secondary text-muted-foreground"
|
||||
aria-label={t("group.add")}
|
||||
size="xs"
|
||||
onClick={() => setAddGroup(true)}
|
||||
>
|
||||
<LuPlus className="size-4 text-primary" />
|
||||
</Button>
|
||||
<Tooltip open={tooltip == "edit"}>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
className="bg-secondary text-muted-foreground"
|
||||
aria-label={t("group.editGroups")}
|
||||
size="xs"
|
||||
onClick={() => setAddGroup(true)}
|
||||
onMouseEnter={() => showTooltip("edit")}
|
||||
onMouseLeave={() => showTooltip(undefined)}
|
||||
>
|
||||
<LuPencil className="size-4 text-primary" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipPortal>
|
||||
<TooltipContent side="right">
|
||||
{t("group.editGroups")}
|
||||
</TooltipContent>
|
||||
</TooltipPortal>
|
||||
</Tooltip>
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user