Skip to content

Commit 52bccfa

Browse files
committed
fix(web): i18n update
1 parent 124e8d0 commit 52bccfa

4 files changed

Lines changed: 3 additions & 8 deletions

File tree

web/src/i18n/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3096,7 +3096,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re
30963096
editPackage: 'Edit Package',
30973097

30983098
viewDetail: 'View full package details',
3099-
noLimit: 'Unlimited',
3099+
noLimit: 'Infinite',
31003100
},
31013101
},
31023102
};

web/src/i18n/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3060,7 +3060,7 @@ export const zh = {
30603060
editPackage: '编辑套餐',
30613061

30623062
viewDetail: '查看完整套餐详情',
3063-
noLimit: '不限制',
3063+
noLimit: '无限',
30643064
},
30653065
},
30663066
}

web/src/views/ApplicationConfig/Agent.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
6262
const { id } = useParams();
6363
const { message } = App.useApp()
6464
const [form] = Form.useForm()
65-
const [loading, setLoading] = useState(false)
6665
const [data, setData] = useState<Config | null>(null);
6766
const modelConfigModalRef = useRef<ModelConfigModalRef>(null)
6867
const [modelList, setModelList] = useState<Model[]>([])
@@ -94,7 +93,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
9493
* Fetch agent configuration data
9594
*/
9695
const getData = () => {
97-
setLoading(true)
9896
getApplicationConfig(id as string).then(res => {
9997
const response = res as Config
10098
const { skills, variables } = response
@@ -127,8 +125,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
127125
tools: allTools
128126
})
129127
onFeaturesLoad?.(response.features)
130-
}).finally(() => {
131-
setLoading(false)
132128
})
133129
}
134130

@@ -421,7 +417,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
421417
console.log('agent values', values)
422418
return (
423419
<>
424-
{loading && <Spin fullscreen></Spin>}
425420
<Row className="rb:h-full!" gutter={12}>
426421
<Col span={12} className="rb:h-full!">
427422
<Form form={form}>

web/src/views/Workflow/hooks/useWorkflowGraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ export const useWorkflowGraph = ({
451451
graphRef.current.addEdges(edgeList.filter(vo => vo !== null))
452452
}
453453

454+
graphRef.current.centerContent()
454455
// Initialize after completion, display nodes in visible area
455456
if (nodes.length > 0 || edges.length > 0) {
456457
setTimeout(() => {
457458
if (graphRef.current) {
458-
graphRef.current.centerContent()
459459
graphRef.current.getNodes().forEach(node => {
460460
if (!node.getData()?.cycle) node.toFront();
461461
});

0 commit comments

Comments
 (0)