mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-27 13:47:50 +02:00
Fix config change lost when reloading page
This commit is contained in:
parent
ad21061e16
commit
4a52ff30ac
@ -122,7 +122,9 @@ export default function FrigatePlusSettingsView({
|
||||
setIsLoading(true);
|
||||
|
||||
axios
|
||||
.put(`config/set?model.path=plus://${frigatePlusSettings.model.id}`, {})
|
||||
.put(`config/set?model.path=plus://${frigatePlusSettings.model.id}`, {
|
||||
requires_restart: 0,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
toast.success(t("frigatePlus.toast.success"), {
|
||||
@ -321,15 +323,14 @@ export default function FrigatePlusSettingsView({
|
||||
}
|
||||
>
|
||||
<SelectTrigger>
|
||||
{(() => {
|
||||
const modelId = frigatePlusSettings?.model?.id;
|
||||
return modelId &&
|
||||
availableModels?.[modelId]?.trainDate
|
||||
? new Date(
|
||||
availableModels[modelId].trainDate,
|
||||
).toLocaleString()
|
||||
: "Retrieving models...";
|
||||
})()}
|
||||
{frigatePlusSettings.model.id &&
|
||||
availableModels?.[frigatePlusSettings.model.id]
|
||||
? new Date(
|
||||
availableModels[
|
||||
frigatePlusSettings.model.id
|
||||
].trainDate,
|
||||
).toLocaleString()
|
||||
: "Retrieving models..."}
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user