forked from Github/frigate
add page titles for settings views (#11132)
This commit is contained in:
@@ -171,6 +171,7 @@ export default function MasksAndZones({
|
||||
setActivePolygonIndex(undefined);
|
||||
setHoveredPolygonIndex(null);
|
||||
setUnsavedChanges(false);
|
||||
document.title = "Mask and Zone Editor - Frigate";
|
||||
}, [allPolygons, setUnsavedChanges]);
|
||||
|
||||
const handleSave = useCallback(() => {
|
||||
@@ -353,6 +354,10 @@ export default function MasksAndZones({
|
||||
}
|
||||
}, [selectedCamera]);
|
||||
|
||||
useEffect(() => {
|
||||
document.title = "Mask and Zone Editor - Frigate";
|
||||
}, []);
|
||||
|
||||
if (!cameraConfig && !selectedCamera) {
|
||||
return <ActivityIndicator />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user