mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Add button for retaining event
This commit is contained in:
parent
db3693765d
commit
7133a1410f
@ -15,8 +15,11 @@ import VideoPlayer from '../components/VideoPlayer';
|
|||||||
import { Table, Thead, Tbody, Th, Tr, Td } from '../components/Table';
|
import { Table, Thead, Tbody, Th, Tr, Td } from '../components/Table';
|
||||||
import { FetchStatus, useApiHost, useEvent, useDelete } from '../api';
|
import { FetchStatus, useApiHost, useEvent, useDelete } from '../api';
|
||||||
|
|
||||||
const ActionButtonGroup = ({ className, handleClickDelete, close }) => (
|
const ActionButtonGroup = ({ className, handleClickRetain, handleClickDelete, close }) => (
|
||||||
<div className={`space-y-2 space-x-2 sm:space-y-0 xs:space-x-4 ${className}`}>
|
<div className={`space-y-2 space-x-2 sm:space-y-0 xs:space-x-4 ${className}`}>
|
||||||
|
<Button className="xs:w-auto" color="yellow" onClick={handleClickRetain}>
|
||||||
|
<StarRecording className="w-6" /> Retain event
|
||||||
|
</Button>
|
||||||
<Button className="xs:w-auto" color="red" onClick={handleClickDelete}>
|
<Button className="xs:w-auto" color="red" onClick={handleClickDelete}>
|
||||||
<Delete className="w-6" /> Delete event
|
<Delete className="w-6" /> Delete event
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user