mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-27 13:47:50 +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",
|
||||
});
|
||||
setChangedValue(false);
|
||||
addMessage(
|
||||
"plus_restart",
|
||||
"Restart required (Frigate+ model changed)",
|
||||
undefined,
|
||||
"plus_restart",
|
||||
);
|
||||
updateConfig();
|
||||
} else {
|
||||
toast.error(
|
||||
@ -156,7 +162,7 @@ export default function FrigatePlusSettingsView({
|
||||
.finally(() => {
|
||||
setIsLoading(false);
|
||||
});
|
||||
}, [updateConfig, frigatePlusSettings, t]);
|
||||
}, [updateConfig, addMessage, frigatePlusSettings, t]);
|
||||
|
||||
const onCancel = useCallback(() => {
|
||||
setFrigatePlusSettings(origPlusSettings);
|
||||
|
Loading…
Reference in New Issue
Block a user