mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-31 13:48:19 +02:00
Add persistent message requiring restart
This commit is contained in:
parent
4a52ff30ac
commit
f2c48840ca
@ -131,6 +131,12 @@ export default function FrigatePlusSettingsView({
|
|||||||
position: "top-center",
|
position: "top-center",
|
||||||
});
|
});
|
||||||
setChangedValue(false);
|
setChangedValue(false);
|
||||||
|
addMessage(
|
||||||
|
"plus_restart",
|
||||||
|
"Restart required (Frigate+ model changed)",
|
||||||
|
undefined,
|
||||||
|
"plus_restart",
|
||||||
|
);
|
||||||
updateConfig();
|
updateConfig();
|
||||||
} else {
|
} else {
|
||||||
toast.error(
|
toast.error(
|
||||||
@ -156,7 +162,7 @@ export default function FrigatePlusSettingsView({
|
|||||||
.finally(() => {
|
.finally(() => {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
});
|
});
|
||||||
}, [updateConfig, frigatePlusSettings, t]);
|
}, [updateConfig, addMessage, frigatePlusSettings, t]);
|
||||||
|
|
||||||
const onCancel = useCallback(() => {
|
const onCancel = useCallback(() => {
|
||||||
setFrigatePlusSettings(origPlusSettings);
|
setFrigatePlusSettings(origPlusSettings);
|
||||||
|
Loading…
Reference in New Issue
Block a user