mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08: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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user