mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +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")}
|
aria-label={t("notification.registerDevice")}
|
||||||
disabled={
|
disabled={
|
||||||
(!config?.notifications.enabled &&
|
(!config?.notifications.enabled &&
|
||||||
notificationCameras.length === 0) ||
|
notificationCameras.length === 0 &&
|
||||||
|
!form.watch("allEnabled") &&
|
||||||
|
form.watch("cameras").length === 0) ||
|
||||||
publicKey == undefined
|
publicKey == undefined
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user