mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Make page reload so retain button state sticks
This commit is contained in:
parent
f18aeac512
commit
eb2592c0ba
@ -86,7 +86,9 @@ export default function Event({ eventId, close, scrollRef }) {
|
|||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
setIsRetained(!isRetained);
|
setIsRetained(!isRetained);
|
||||||
window.location.reload(); // Need to reload page otherwise retain won't stick
|
|
||||||
|
// Need to reload page otherwise retain button state won't stick if event is collapsed and re-opened.
|
||||||
|
window.location.reload();
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user