From 5131eb974db43534f1903081d0c30544ef80a942 Mon Sep 17 00:00:00 2001 From: Jessica V Date: Fri, 16 Oct 2026 16:43:43 +0100 Subject: [PATCH] Use visitDirpath to restrict config path --- .../ptyrex/PtyrexParameterConfiguration.tsx | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/frontend/unified/src/components/ParameterConfiguration/ptyrex/PtyrexParameterConfiguration.tsx b/frontend/unified/src/components/ParameterConfiguration/ptyrex/PtyrexParameterConfiguration.tsx index 924f262e..9483c570 100644 --- a/frontend/unified/src/components/ParameterConfiguration/ptyrex/PtyrexParameterConfiguration.tsx +++ b/frontend/unified/src/components/ParameterConfiguration/ptyrex/PtyrexParameterConfiguration.tsx @@ -1,4 +1,4 @@ -import { Card, Stack, TextField } from "@mui/material"; +import { Card, InputAdornment, Stack, TextField } from "@mui/material"; import { useEffect, useState } from "react"; import { TemplateComponentProps } from "../../types"; @@ -12,7 +12,7 @@ export const PtyrexParameterConfiguration = ({ useEffect(() => { setParameters({ - config_json: configPath, + config_json: visitDirpath + configPath, scan_number: scanIds[0], proj_number: projectionNumber, nprocs: 4, @@ -20,6 +20,16 @@ export const PtyrexParameterConfiguration = ({ }); }, [configPath, projectionNumber]); + const displayVisitDir = { + input: { + startAdornment: ( + + {visitDirpath} + + ), + }, + }; + return ( <> setConfigPath(e.target.value)} + slotProps={displayVisitDir} /> setProjectionNumber(e.target.value)} />