mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 22:55:26 +03:00
Add message for when no events are found on plus view
This commit is contained in:
parent
28fee26bc0
commit
b368ee0ed0
@ -43,6 +43,7 @@ import {
|
|||||||
FaSortAmountDown,
|
FaSortAmountDown,
|
||||||
FaSortAmountUp,
|
FaSortAmountUp,
|
||||||
} from "react-icons/fa";
|
} from "react-icons/fa";
|
||||||
|
import { LuFolderX } from "react-icons/lu";
|
||||||
import { PiSlidersHorizontalFill } from "react-icons/pi";
|
import { PiSlidersHorizontalFill } from "react-icons/pi";
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import useSWRInfinite from "swr/infinite";
|
import useSWRInfinite from "swr/infinite";
|
||||||
@ -240,6 +241,12 @@ export default function SubmitPlus() {
|
|||||||
<PlusSortSelector selectedSort={sort} setSelectedSort={setSort} />
|
<PlusSortSelector selectedSort={sort} setSelectedSort={setSort} />
|
||||||
</div>
|
</div>
|
||||||
<div className="no-scrollbar flex size-full flex-1 flex-wrap content-start gap-2 overflow-y-auto md:gap-4">
|
<div className="no-scrollbar flex size-full flex-1 flex-wrap content-start gap-2 overflow-y-auto md:gap-4">
|
||||||
|
{events?.length === 0 ? (
|
||||||
|
<div className="absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center text-center">
|
||||||
|
<LuFolderX className="size-16" />
|
||||||
|
No events found
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
<div className="grid w-full gap-2 p-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5">
|
<div className="grid w-full gap-2 p-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5">
|
||||||
<Dialog
|
<Dialog
|
||||||
open={upload != undefined}
|
open={upload != undefined}
|
||||||
@ -250,8 +257,8 @@ export default function SubmitPlus() {
|
|||||||
<DialogTitle>Submit To Frigate+</DialogTitle>
|
<DialogTitle>Submit To Frigate+</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Objects in locations you want to avoid are not false
|
Objects in locations you want to avoid are not false
|
||||||
positives. Submitting them as false positives will confuse the
|
positives. Submitting them as false positives will confuse
|
||||||
model.
|
the model.
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<img
|
<img
|
||||||
@ -328,8 +335,9 @@ export default function SubmitPlus() {
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{!isValidating && !isDone && <div ref={lastEventRef} />}
|
{!isValidating && !isDone && <div ref={lastEventRef} />}
|
||||||
{isValidating && <ActivityIndicator />}
|
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
{isValidating && <ActivityIndicator />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user