From a5bd4b8550f0f838b1578416a6970f9c3dad5ffd Mon Sep 17 00:00:00 2001
From: ZhaiSoul <842607283@qq.com>
Date: Thu, 13 Mar 2025 00:35:57 +0800
Subject: [PATCH] fix: fix exploreSettings error
---
.../components/settings/SearchSettings.tsx | 4 +-
web/src/views/live/LiveCameraView.tsx | 52 +++++++++++--------
web/src/views/settings/SearchSettingsView.tsx | 22 ++++----
3 files changed, 45 insertions(+), 33 deletions(-)
diff --git a/web/src/components/settings/SearchSettings.tsx b/web/src/components/settings/SearchSettings.tsx
index 5d390a5c3..72c26ec6d 100644
--- a/web/src/components/settings/SearchSettings.tsx
+++ b/web/src/components/settings/SearchSettings.tsx
@@ -159,7 +159,9 @@ export function SearchTypeContent({
-
{t("explore.settings.searchSource.label")}
+
+ {t("explore.settings.searchSource.label")}
+
{t("explore.settings.searchSource.desc")}
diff --git a/web/src/views/live/LiveCameraView.tsx b/web/src/views/live/LiveCameraView.tsx
index 4f8f5c5a4..95155d5e0 100644
--- a/web/src/views/live/LiveCameraView.tsx
+++ b/web/src/views/live/LiveCameraView.tsx
@@ -1038,9 +1038,7 @@ function FrigateCameraFeatures({
Started manual on-demand recording.
{!camera.record.enabled || camera.record.alerts.retain.days == 0 ? (
-
- {t("manualRecording.recordDisabledTips")}
-
+
{t("manualRecording.recordDisabledTips")}
) : (
)}
@@ -1237,7 +1235,9 @@ function FrigateCameraFeatures({
- {t("button.info", {ns: "common"})}
+
+ {t("button.info", { ns: "common" })}
+
@@ -1265,7 +1265,9 @@ function FrigateCameraFeatures({
{isRestreamed &&
Object.values(camera.live.streams).length > 0 && (
-
+
@@ -1550,7 +1554,9 @@ function FrigateCameraFeatures({
- {t("button.info", {ns: "common"})}
+
+ {t("button.info", { ns: "common" })}
+
@@ -1621,7 +1627,9 @@ function FrigateCameraFeatures({
- {t("button.info", {ns: "common"})}
+
+ {t("button.info", { ns: "common" })}
+
@@ -1660,7 +1668,9 @@ function FrigateCameraFeatures({
- {t("button.info", {ns: "common"})}
+
+ {t("button.info", { ns: "common" })}
+
@@ -1687,9 +1697,7 @@ function FrigateCameraFeatures({
-
- {t("stream.lowBandwidth.tips")}
-
+
{t("stream.lowBandwidth.tips")}
)}
diff --git a/web/src/views/settings/SearchSettingsView.tsx b/web/src/views/settings/SearchSettingsView.tsx
index da0ad962b..36bc95e91 100644
--- a/web/src/views/settings/SearchSettingsView.tsx
+++ b/web/src/views/settings/SearchSettingsView.tsx
@@ -58,7 +58,7 @@ export default function ExploreSettingsView({
useEffect(() => {
if (config) {
- if (ExploreSettings?.enabled == undefined) {
+ if (exploreSettings?.enabled == undefined) {
setExploreSettings({
enabled: config.semantic_search.enabled,
reindex: config.semantic_search.reindex,
@@ -87,7 +87,7 @@ export default function ExploreSettingsView({
axios
.put(
- `config/set?semantic_search.enabled=${ExploreSettings.enabled ? "True" : "False"}&semantic_search.reindex=${ExploreSettings.reindex ? "True" : "False"}&semantic_search.model_size=${ExploreSettings.model_size}`,
+ `config/set?semantic_search.enabled=${exploreSettings.enabled ? "True" : "False"}&semantic_search.reindex=${exploreSettings.reindex ? "True" : "False"}&semantic_search.model_size=${exploreSettings.model_size}`,
{
requires_restart: 0,
},
@@ -131,9 +131,9 @@ export default function ExploreSettingsView({
});
}, [
updateConfig,
- ExploreSettings.enabled,
- ExploreSettings.reindex,
- ExploreSettings.model_size,
+ exploreSettings.enabled,
+ exploreSettings.reindex,
+ exploreSettings.model_size,
t,
]);
@@ -202,8 +202,8 @@ export default function ExploreSettingsView({