mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Fix missing restart notification in Classification settings (#17397)
* Use different message key to fix missing restart message * Move addMessage to finally block
This commit is contained in:
parent
e3f34d6f11
commit
53c8aa25cb
@ -176,8 +176,8 @@ export default function ClassificationSettingsView({
|
||||
})
|
||||
.finally(() => {
|
||||
addMessage(
|
||||
"search_settings",
|
||||
`Restart Required (Classification settings changed)`,
|
||||
"search_settings_restart",
|
||||
`Restart required (Classification settings changed)`,
|
||||
undefined,
|
||||
"search_settings",
|
||||
);
|
||||
|
@ -131,12 +131,6 @@ export default function FrigatePlusSettingsView({
|
||||
position: "top-center",
|
||||
});
|
||||
setChangedValue(false);
|
||||
addMessage(
|
||||
"plus_restart",
|
||||
"Restart required (Frigate+ model changed)",
|
||||
undefined,
|
||||
"plus_restart",
|
||||
);
|
||||
updateConfig();
|
||||
} else {
|
||||
toast.error(
|
||||
@ -160,6 +154,12 @@ export default function FrigatePlusSettingsView({
|
||||
);
|
||||
})
|
||||
.finally(() => {
|
||||
addMessage(
|
||||
"plus_restart",
|
||||
"Restart required (Frigate+ model changed)",
|
||||
undefined,
|
||||
"plus_restart",
|
||||
);
|
||||
setIsLoading(false);
|
||||
});
|
||||
}, [updateConfig, addMessage, frigatePlusSettings, t]);
|
||||
|
Loading…
Reference in New Issue
Block a user