From 7b3abe330ec78517507334da3d5aecbdb1895744 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Thu, 3 Jun 2021 13:02:40 -0400 Subject: [PATCH] recordings is taken by nginx so refresh fails - change base to recording --- web/src/App.jsx | 2 +- web/src/Sidebar.jsx | 6 +++--- web/src/components/RecordingPlaylist.jsx | 4 ++-- web/src/routes/Cameras.jsx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/App.jsx b/web/src/App.jsx index df8516ca4..49d572736 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -29,7 +29,7 @@ export default function App() { - + diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index 8ddc1ea7d..60c1e46eb 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -27,15 +27,15 @@ export default function Sidebar() { ) : null } - + {({ matches }) => matches ? ( {cameras.map((camera) => ( ))} diff --git a/web/src/components/RecordingPlaylist.jsx b/web/src/components/RecordingPlaylist.jsx index dedb130ea..ad76fd6bd 100644 --- a/web/src/components/RecordingPlaylist.jsx +++ b/web/src/components/RecordingPlaylist.jsx @@ -29,7 +29,7 @@ export default function RecordingPlaylist({ camera, recordings, selectedDate, se }`} >
- + {item.hour}:00
@@ -87,7 +87,7 @@ export function EventCard({ camera, event, delay }) { const duration = addSeconds(new Date(0), differenceInSeconds(end, start)); const seconds = Math.max(differenceInSeconds(start, startOfHour(start)) - delay - 10, 0); return ( - +
diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index 121c937ba..a0a1758ea 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -30,7 +30,7 @@ function Camera({ name }) { const href = `/cameras/${name}`; const buttons = useMemo(() => [ { name: 'Events', href: `/events?camera=${name}` }, - { name: 'Recordings', href: `/recordings/${name}` } + { name: 'Recordings', href: `/recording/${name}` } ], [name]); const icons = useMemo( () => [