Always show recording link even if recordings are currently disabled

This commit is contained in:
Nick Mowen 2022-02-10 10:50:20 -07:00
parent adbc54bcfe
commit 08f58cec03

View File

@ -29,12 +29,8 @@ function Camera({ name, conf }) {
const { payload: snapshotValue, send: sendSnapshots } = useSnapshotsState(name); const { payload: snapshotValue, send: sendSnapshots } = useSnapshotsState(name);
const href = `/cameras/${name}`; const href = `/cameras/${name}`;
const buttons = useMemo(() => { const buttons = useMemo(() => {
const result = [{ name: 'Events', href: `/events?camera=${name}` }]; return [{ name: 'Events', href: `/events?camera=${name}` }, { name: 'Recordings', href: `/recording/${name}` }];
if (conf.record.enabled) { }, [name]);
result.push({ name: 'Recordings', href: `/recording/${name}` });
}
return result;
}, [name, conf.record.enabled]);
const icons = useMemo( const icons = useMemo(
() => [ () => [
{ {