mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Fix clicking behavior
This commit is contained in:
parent
d56ab44a58
commit
d765153992
@ -514,8 +514,8 @@ function TrainingGrid({
|
|||||||
recognitionConfig={config.face_recognition}
|
recognitionConfig={config.face_recognition}
|
||||||
selected={selectedFaces.includes(data.filename)}
|
selected={selectedFaces.includes(data.filename)}
|
||||||
onClick={(data, meta) => {
|
onClick={(data, meta) => {
|
||||||
if (meta) {
|
if (meta || selectedFaces.length > 0) {
|
||||||
onClickFace(data.filename, meta);
|
onClickFace(data.filename, true);
|
||||||
} else {
|
} else {
|
||||||
setSelectedEvent(event);
|
setSelectedEvent(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user