mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +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(() => {
|
.finally(() => {
|
||||||
addMessage(
|
addMessage(
|
||||||
"search_settings",
|
"search_settings_restart",
|
||||||
`Restart Required (Classification settings changed)`,
|
`Restart required (Classification settings changed)`,
|
||||||
undefined,
|
undefined,
|
||||||
"search_settings",
|
"search_settings",
|
||||||
);
|
);
|
||||||
|
@ -131,12 +131,6 @@ 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(
|
||||||
@ -160,6 +154,12 @@ export default function FrigatePlusSettingsView({
|
|||||||
);
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
addMessage(
|
||||||
|
"plus_restart",
|
||||||
|
"Restart required (Frigate+ model changed)",
|
||||||
|
undefined,
|
||||||
|
"plus_restart",
|
||||||
|
);
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
});
|
});
|
||||||
}, [updateConfig, addMessage, frigatePlusSettings, t]);
|
}, [updateConfig, addMessage, frigatePlusSettings, t]);
|
||||||
|
Loading…
Reference in New Issue
Block a user