mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
fix notifications register button from being incorrectly disabled
This commit is contained in:
parent
6103ee604b
commit
9241ddc1f0
@ -523,7 +523,9 @@ export default function NotificationView({
|
||||
aria-label={t("notification.registerDevice")}
|
||||
disabled={
|
||||
(!config?.notifications.enabled &&
|
||||
notificationCameras.length === 0) ||
|
||||
notificationCameras.length === 0 &&
|
||||
!form.watch("allEnabled") &&
|
||||
form.watch("cameras").length === 0) ||
|
||||
publicKey == undefined
|
||||
}
|
||||
onClick={() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user