mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-23 06:38:24 +00:00
hide side nav when viewing process model w/ burnettk
This commit is contained in:
parent
a9374c15d1
commit
153c02263f
@ -32,6 +32,7 @@ export default function ProcessModelCard({
|
||||
stream,
|
||||
lastSelected,
|
||||
onStartProcess,
|
||||
onViewProcess,
|
||||
processModelAction,
|
||||
}: {
|
||||
model: Record<string, any>;
|
||||
@ -39,6 +40,7 @@ export default function ProcessModelCard({
|
||||
stream?: Subject<Record<string, any>>;
|
||||
lastSelected?: Record<string, any>;
|
||||
onStartProcess?: () => void;
|
||||
onViewProcess?: () => void;
|
||||
}) {
|
||||
const [selectedStyle, setSelectedStyle] =
|
||||
useState<Record<string, any>>(defaultStyle);
|
||||
@ -64,6 +66,9 @@ export default function ProcessModelCard({
|
||||
|
||||
const handleViewProcess = (e: PointerEvent) => {
|
||||
stopEventBubble(e);
|
||||
if (onViewProcess) {
|
||||
onViewProcess();
|
||||
}
|
||||
const modifiedProcessModelId = modifyProcessIdentifierForPathParam(
|
||||
model.id,
|
||||
);
|
||||
|
@ -450,6 +450,11 @@ export default function ProcessModelTreePage({
|
||||
setNavElementCallback(null);
|
||||
}
|
||||
}}
|
||||
onViewProcess={() => {
|
||||
if (setNavElementCallback) {
|
||||
setNavElementCallback(null);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</Box>
|
||||
|
Loading…
x
Reference in New Issue
Block a user