mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-08 13:01:13 +03:00
change order of features in mobile review settings drawer
This commit is contained in:
parent
f6b844b6e3
commit
ee2f883007
@ -348,6 +348,32 @@ export default function MobileReviewSettingsDrawer({
|
|||||||
{t("export")}
|
{t("export")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
{features.includes("calendar") && (
|
||||||
|
<Button
|
||||||
|
className="flex w-full items-center justify-center gap-2"
|
||||||
|
aria-label={t("calendar")}
|
||||||
|
variant={filter?.after ? "select" : "default"}
|
||||||
|
onClick={() => setDrawerMode("calendar")}
|
||||||
|
>
|
||||||
|
<FaCalendarAlt
|
||||||
|
className={`${filter?.after ? "text-selected-foreground" : "text-secondary-foreground"}`}
|
||||||
|
/>
|
||||||
|
{t("calendar")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
{features.includes("filter") && (
|
||||||
|
<Button
|
||||||
|
className="flex w-full items-center justify-center gap-2"
|
||||||
|
aria-label={t("filter")}
|
||||||
|
variant={filter?.labels || filter?.zones ? "select" : "default"}
|
||||||
|
onClick={() => setDrawerMode("filter")}
|
||||||
|
>
|
||||||
|
<FaFilter
|
||||||
|
className={`${filter?.labels || filter?.zones ? "text-selected-foreground" : "text-secondary-foreground"}`}
|
||||||
|
/>
|
||||||
|
{t("filter")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
{features.includes("share-timestamp") && (
|
{features.includes("share-timestamp") && (
|
||||||
<Button
|
<Button
|
||||||
className="flex w-full items-center justify-center gap-2"
|
className="flex w-full items-center justify-center gap-2"
|
||||||
@ -382,32 +408,6 @@ export default function MobileReviewSettingsDrawer({
|
|||||||
{t("motionSearch.menuItem", { ns: "views/events" })}
|
{t("motionSearch.menuItem", { ns: "views/events" })}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{features.includes("calendar") && (
|
|
||||||
<Button
|
|
||||||
className="flex w-full items-center justify-center gap-2"
|
|
||||||
aria-label={t("calendar")}
|
|
||||||
variant={filter?.after ? "select" : "default"}
|
|
||||||
onClick={() => setDrawerMode("calendar")}
|
|
||||||
>
|
|
||||||
<FaCalendarAlt
|
|
||||||
className={`${filter?.after ? "text-selected-foreground" : "text-secondary-foreground"}`}
|
|
||||||
/>
|
|
||||||
{t("calendar")}
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
{features.includes("filter") && (
|
|
||||||
<Button
|
|
||||||
className="flex w-full items-center justify-center gap-2"
|
|
||||||
aria-label={t("filter")}
|
|
||||||
variant={filter?.labels || filter?.zones ? "select" : "default"}
|
|
||||||
onClick={() => setDrawerMode("filter")}
|
|
||||||
>
|
|
||||||
<FaFilter
|
|
||||||
className={`${filter?.labels || filter?.zones ? "text-selected-foreground" : "text-secondary-foreground"}`}
|
|
||||||
/>
|
|
||||||
{t("filter")}
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
{isAdmin && features.includes("debug-replay") && (
|
{isAdmin && features.includes("debug-replay") && (
|
||||||
<Button
|
<Button
|
||||||
className="flex w-full items-center justify-center gap-2"
|
className="flex w-full items-center justify-center gap-2"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user