diff --git a/src/components/IOC/IOCCreateDialog.js b/src/components/IOC/IOCCreateDialog.js index ccfd851225226cb99c10bc1817349a7fa9c2a349..31ca8e2a5c400ca911947b1f1aff1c2e4082d7a0 100644 --- a/src/components/IOC/IOCCreateDialog.js +++ b/src/components/IOC/IOCCreateDialog.js @@ -52,6 +52,7 @@ export function IOCCreateDialog({ open, setOpen, submitCallback, error, resetErr renderInput={(params) => <TextField {...params} label="IOC name" variant="outlined" required/>} onChange={(event, value, reason) => {setName(value); resetError();}} onInputChange={(event, value, reason) => {event && onNameKeyUp(event.nativeEvent)}} + autoSelect /> <TextField autoComplete="off" className={classes.textField} id="description" label="--- IOC Description from CCDB ---" @@ -69,6 +70,7 @@ export function IOCCreateDialog({ open, setOpen, submitCallback, error, resetErr getOptionLabel={(option) => {return option.url}} onChange={(event, value, reason) => {setGitId(value.id); resetError();}} renderInput={(params) => <TextField {...params} label="Git repository" variant="outlined" fullWidth required />} + autoSelect /> {error ? diff --git a/src/components/IOC/IOCDeployDialog.js b/src/components/IOC/IOCDeployDialog.js index 2a95d5ff0f3646ec12c86e3d445611f9bcbd8160..db76b1e5f2406a529374f7a82908493a1badef07 100644 --- a/src/components/IOC/IOCDeployDialog.js +++ b/src/components/IOC/IOCDeployDialog.js @@ -71,6 +71,7 @@ export function IOCDeployDialog({ open, setOpen, submitCallback, hasActiveDeploy onChange={(event, value, reason) => {setGitVersion(value?.reference); resetError();}} disabled={(!gitRepo) || (gitRepo.trim() === "")} renderInput={(params) => <TextField {...params} label="Git reference" variant="outlined" fullWidth required />} + autoSelect /> <Autocomplete @@ -84,6 +85,7 @@ export function IOCDeployDialog({ open, setOpen, submitCallback, hasActiveDeploy onChange={(event, value, reason) => {setHost(value); resetError();}} onInputChange={(event, value, reason) => {event && onHostKeyUp(event.nativeEvent)}} disabled={hasActiveDeployment} + autoSelect /> { hasActiveDeployment ? diff --git a/src/components/IOC/IOCDetailAdmin.js b/src/components/IOC/IOCDetailAdmin.js index 75157e3154fc2f1ab9d750932d132d2e432d7f47..301a18187afa6994c6f993d566bd9f8efb02c650 100644 --- a/src/components/IOC/IOCDetailAdmin.js +++ b/src/components/IOC/IOCDetailAdmin.js @@ -106,6 +106,7 @@ export default function IOCDetailAdmin({ ioc, getIOC, resetTab, buttonDisabled } onChange={(event, value, reason) => { setName(value); setError(null); }} onInputChange={(event, value, reason) => { event && onNameKeyUp(event.nativeEvent) }} disabled={disabled} + autoSelect /> </span> </Tooltip> @@ -124,6 +125,7 @@ export default function IOCDetailAdmin({ ioc, getIOC, resetTab, buttonDisabled } renderInput={(params) => <TextField {...params} label="Owner" variant="outlined" fullWidth required />} onChange={(event, value, reason) => {setOwner(value); setError(null);}} disabled={disabled} + autoSelect /> ); } @@ -158,7 +160,9 @@ export default function IOCDetailAdmin({ ioc, getIOC, resetTab, buttonDisabled } } } getOptionLabel={(option) => { return option.url }} onChange={(event, value, reason) => {setGitId(value.id); setError(null);}} - renderInput={(params) => <TextField {...params} label="Git repository" variant="outlined" fullWidth required />} /> + renderInput={(params) => <TextField {...params} label="Git repository" variant="outlined" fullWidth required />} + autoSelect + /> <AccessControl allowedRoles={["DeploymentToolAdmin"]}