Update comment translations to English
This commit is contained in:
@@ -100,6 +100,7 @@ const GraphLabels = () => {
|
|||||||
onChange={(newLabel) => {
|
onChange={(newLabel) => {
|
||||||
const currentLabel = useSettingsStore.getState().queryLabel
|
const currentLabel = useSettingsStore.getState().queryLabel
|
||||||
|
|
||||||
|
// select the last item means query all
|
||||||
if (newLabel === '...') {
|
if (newLabel === '...') {
|
||||||
newLabel = '*'
|
newLabel = '*'
|
||||||
}
|
}
|
||||||
@@ -120,7 +121,7 @@ const GraphLabels = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (newLabel === currentLabel && newLabel !== '*') {
|
if (newLabel === currentLabel && newLabel !== '*') {
|
||||||
// 选择相同标签时切换到'*'
|
// reselect the same itme means qery all
|
||||||
useSettingsStore.getState().setQueryLabel('*')
|
useSettingsStore.getState().setQueryLabel('*')
|
||||||
} else {
|
} else {
|
||||||
useSettingsStore.getState().setQueryLabel(newLabel)
|
useSettingsStore.getState().setQueryLabel(newLabel)
|
||||||
|
@@ -173,7 +173,7 @@ const useGraphStoreBase = create<GraphState>()((set, get) => ({
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
setSigmaGraph: (sigmaGraph: DirectedGraph | null) => {
|
setSigmaGraph: (sigmaGraph: DirectedGraph | null) => {
|
||||||
// 直接替换图形实例,不尝试保留WebGL上下文
|
// Replace graph instance, no need to keep WebGL context
|
||||||
set({ sigmaGraph });
|
set({ sigmaGraph });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user