Add persistent message requiring restart

This commit is contained in:
leccelecce 2025-03-24 10:51:59 +00:00 committed by james
parent 4a52ff30ac
commit f2c48840ca

View File

@ -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);