mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-01 16:55:21 +03:00
added Clip header
This commit is contained in:
parent
e2a76e4bfe
commit
0d60bad752
@ -20,7 +20,7 @@ export default function Event({ eventId, close, scrollIntoView }) {
|
||||
|
||||
useEffect(() => {
|
||||
// Call Events.js scroll when this event has been mounted.
|
||||
scrollIntoView(eventId);
|
||||
() => scrollIntoView(eventId);
|
||||
}, []);
|
||||
|
||||
const handleClickDelete = () => {
|
||||
@ -92,6 +92,7 @@ export default function Event({ eventId, close, scrollIntoView }) {
|
||||
<div className="absolute w-full top-10 left-0">
|
||||
{data.has_clip ? (
|
||||
<Fragment>
|
||||
<Heading size="lg">Clip</Heading>
|
||||
<VideoPlayer
|
||||
options={{
|
||||
sources: [
|
||||
|
||||
@ -73,7 +73,7 @@ export default function Events({ path: pathname, limit = API_LIMIT } = {}) {
|
||||
const [searchString, setSearchString] = useState(`${defaultSearchString(limit)}&${initialSearchParams.toString()}`);
|
||||
const { data, status, deletedId } = useEvents(searchString);
|
||||
|
||||
let scrollToRef = {};
|
||||
const scrollToRef = {};
|
||||
useEffect(() => {
|
||||
if (data && !(searchString in searchStrings)) {
|
||||
dispatch({ type: 'APPEND_EVENTS', payload: data, meta: { searchString } });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user