From 496a208bf93b74cbea1e0709b6c478c169da32ea Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 14 Mar 2025 01:00:40 +0800 Subject: [PATCH] Update comment translations to English --- lightrag_webui/src/components/graph/GraphLabels.tsx | 3 ++- lightrag_webui/src/stores/graph.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lightrag_webui/src/components/graph/GraphLabels.tsx b/lightrag_webui/src/components/graph/GraphLabels.tsx index 214c3890..bd2c8ea0 100644 --- a/lightrag_webui/src/components/graph/GraphLabels.tsx +++ b/lightrag_webui/src/components/graph/GraphLabels.tsx @@ -100,6 +100,7 @@ const GraphLabels = () => { onChange={(newLabel) => { const currentLabel = useSettingsStore.getState().queryLabel + // select the last item means query all if (newLabel === '...') { newLabel = '*' } @@ -120,7 +121,7 @@ const GraphLabels = () => { } if (newLabel === currentLabel && newLabel !== '*') { - // 选择相同标签时切换到'*' + // reselect the same itme means qery all useSettingsStore.getState().setQueryLabel('*') } else { useSettingsStore.getState().setQueryLabel(newLabel) diff --git a/lightrag_webui/src/stores/graph.ts b/lightrag_webui/src/stores/graph.ts index b7d443e0..2c082064 100644 --- a/lightrag_webui/src/stores/graph.ts +++ b/lightrag_webui/src/stores/graph.ts @@ -173,7 +173,7 @@ const useGraphStoreBase = create()((set, get) => ({ }), setSigmaGraph: (sigmaGraph: DirectedGraph | null) => { - // 直接替换图形实例,不尝试保留WebGL上下文 + // Replace graph instance, no need to keep WebGL context set({ sigmaGraph }); },