Improve notifications (#16632)

* add notification cooldown

* cooldown docs

* show alert box when notifications are used in an insecure context

* add ability to suspend notifications from dashboard context menu
This commit is contained in:
Josh Hawkins
2025-02-17 07:19:03 -07:00
committed by GitHub
parent 1e709f5b3f
commit 3f07d2d37c
12 changed files with 351 additions and 22 deletions
@@ -584,6 +584,7 @@ export default function DraggableGridLayout({
resetPreferredLiveMode={() =>
resetPreferredLiveMode(camera.name)
}
config={config}
>
<LivePlayer
key={camera.name}
@@ -790,6 +791,7 @@ type GridLiveContextMenuProps = {
muteAll: () => void;
unmuteAll: () => void;
resetPreferredLiveMode: () => void;
config?: FrigateConfig;
};
const GridLiveContextMenu = React.forwardRef<
@@ -819,6 +821,7 @@ const GridLiveContextMenu = React.forwardRef<
muteAll,
unmuteAll,
resetPreferredLiveMode,
config,
...props
},
ref,
@@ -849,6 +852,7 @@ const GridLiveContextMenu = React.forwardRef<
muteAll={muteAll}
unmuteAll={unmuteAll}
resetPreferredLiveMode={resetPreferredLiveMode}
config={config}
>
{children}
</LiveContextMenu>
+1
View File
@@ -507,6 +507,7 @@ export default function LiveDashboardView({
resetPreferredLiveMode={() =>
resetPreferredLiveMode(camera.name)
}
config={config}
>
<LivePlayer
cameraRef={cameraRef}