Compare commits

...

2 Commits

Author SHA1 Message Date
Josh Hawkins
8b035be132
disable pip for animated event cards (#22438)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
2026-03-14 16:44:16 -06:00
Josh Hawkins
be79ad89b6
hide set password menu option when native auth is disabled (#22439) 2026-03-14 15:35:48 -05:00
4 changed files with 35 additions and 27 deletions

View File

@ -213,6 +213,7 @@ export function AnimatedEventCard({
playsInline playsInline
muted muted
disableRemotePlayback disableRemotePlayback
disablePictureInPicture
loop loop
onTimeUpdate={() => { onTimeUpdate={() => {
if (!isLoaded) { if (!isLoaded) {

View File

@ -126,19 +126,21 @@ export default function AccountSettings({ className }: AccountSettingsProps) {
<DropdownMenuSeparator className={isDesktop ? "my-2" : "my-2"} /> <DropdownMenuSeparator className={isDesktop ? "my-2" : "my-2"} />
{profile?.username && profile.username !== "anonymous" && ( {config?.auth?.enabled !== false &&
<MenuItem profile?.username &&
className={cn( profile.username !== "anonymous" && (
"flex w-full items-center gap-2", <MenuItem
isDesktop ? "cursor-pointer" : "p-2 text-sm", className={cn(
)} "flex w-full items-center gap-2",
aria-label={t("menu.user.setPassword", { ns: "common" })} isDesktop ? "cursor-pointer" : "p-2 text-sm",
onClick={() => setPasswordDialogOpen(true)} )}
> aria-label={t("menu.user.setPassword", { ns: "common" })}
<LuSquarePen className="mr-2 size-4" /> onClick={() => setPasswordDialogOpen(true)}
<span>{t("menu.user.setPassword", { ns: "common" })}</span> >
</MenuItem> <LuSquarePen className="mr-2 size-4" />
)} <span>{t("menu.user.setPassword", { ns: "common" })}</span>
</MenuItem>
)}
<MenuItem <MenuItem
className={cn( className={cn(

View File

@ -225,20 +225,24 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
<DropdownMenuSeparator <DropdownMenuSeparator
className={isDesktop ? "mt-3" : "mt-1"} className={isDesktop ? "mt-3" : "mt-1"}
/> />
{profile?.username && profile.username !== "anonymous" && ( {config?.auth?.enabled !== false &&
<MenuItem profile?.username &&
className={ profile.username !== "anonymous" && (
isDesktop <MenuItem
? "cursor-pointer" className={
: "flex items-center p-2 text-sm" isDesktop
} ? "cursor-pointer"
aria-label={t("menu.user.setPassword", { ns: "common" })} : "flex items-center p-2 text-sm"
onClick={() => setPasswordDialogOpen(true)} }
> aria-label={t("menu.user.setPassword", { ns: "common" })}
<LuSquarePen className="mr-2 size-4" /> onClick={() => setPasswordDialogOpen(true)}
<span>{t("menu.user.setPassword", { ns: "common" })}</span> >
</MenuItem> <LuSquarePen className="mr-2 size-4" />
)} <span>
{t("menu.user.setPassword", { ns: "common" })}
</span>
</MenuItem>
)}
<MenuItem <MenuItem
className={ className={
isDesktop isDesktop

View File

@ -346,6 +346,7 @@ export interface FrigateConfig {
}; };
auth: { auth: {
enabled: boolean;
roles: { roles: {
[roleName: string]: string[]; [roleName: string]: string[];
}; };