Update comment translations to English
This commit is contained in:
@@ -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)
|
||||
|
@@ -173,7 +173,7 @@ const useGraphStoreBase = create<GraphState>()((set, get) => ({
|
||||
}),
|
||||
|
||||
setSigmaGraph: (sigmaGraph: DirectedGraph | null) => {
|
||||
// 直接替换图形实例,不尝试保留WebGL上下文
|
||||
// Replace graph instance, no need to keep WebGL context
|
||||
set({ sigmaGraph });
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user