M: Improve OSS -> RSForm navigation and fix term graph
This commit is contained in:
parent
0c10162718
commit
566c6be91d
|
@ -33,6 +33,8 @@ import { UserID, UserLevel } from '@/models/user';
|
||||||
import { PARAMETER } from '@/utils/constants';
|
import { PARAMETER } from '@/utils/constants';
|
||||||
import { errors, information } from '@/utils/labels';
|
import { errors, information } from '@/utils/labels';
|
||||||
|
|
||||||
|
import { RSTabID } from '../RSFormPage/RSTabs';
|
||||||
|
|
||||||
export interface ICreateOperationPrompt {
|
export interface ICreateOperationPrompt {
|
||||||
x: number;
|
x: number;
|
||||||
y: number;
|
y: number;
|
||||||
|
@ -206,7 +208,7 @@ export const OssEditState = ({ selected, setSelected, children }: OssEditStatePr
|
||||||
if (!node?.result) {
|
if (!node?.result) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
router.push(urls.schema(node.result));
|
router.push(urls.schema_props({ id: node.result, tab: RSTabID.CST_LIST }));
|
||||||
},
|
},
|
||||||
[router, model]
|
[router, model]
|
||||||
);
|
);
|
||||||
|
|
|
@ -99,8 +99,7 @@ function TermGraph({
|
||||||
);
|
);
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
graphRef.current?.resetControls(true);
|
graphRef.current?.fitNodesInView([], { animated: true });
|
||||||
graphRef.current?.centerGraph();
|
|
||||||
}, [toggleResetView, graphRef]);
|
}, [toggleResetView, graphRef]);
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user