INFRA-409| Deepak Jain | first select env then app

This commit is contained in:
Deepak Jain
2020-07-06 18:57:02 +05:30
parent f3cf6b3307
commit efb43dcf7c

View File

@@ -151,6 +151,27 @@ const ShowDeploymentManifest = (props: any) => {
<MenuAppBar name="Show Manifest File" />
<div className="app">
<Grid container spacing={1}>
<Grid item xs>
<label
htmlFor="manifestEnv"
style={{ display: "block", marginTop: 16 }}
>
Deployment Environment
<Select
name="manifestEnv"
fullWidth
variant="outlined"
value={environment}
onChange={handleEnvChange}
>
<MenuItem aria-label="None" value="" />
<MenuItem value="dev">Dev</MenuItem>
<MenuItem value="prod">Prod</MenuItem>
<MenuItem value="qa">QA</MenuItem>
<MenuItem value="automation">Automation</MenuItem>
</Select>
</label>
</Grid>
<Grid item xs>
<label
htmlFor="manifestName"
@@ -173,41 +194,26 @@ const ShowDeploymentManifest = (props: any) => {
</Select>
</label>
</Grid>
<Grid item xs>
<label
htmlFor="manifestEnv"
style={{ display: "block", marginTop: 16 }}
>
Deployment Environment
<Select
name="manifestEnv"
fullWidth
variant="outlined"
value={environment}
onChange={handleEnvChange}
>
<MenuItem aria-label="None" value="" />
<MenuItem value="dev">Dev</MenuItem>
<MenuItem value="prod">Prod</MenuItem>
<MenuItem value="qa">QA</MenuItem>
<MenuItem value="automation">Automation</MenuItem>
</Select>
</label>
</Grid>
</Grid>
<br />
<Button
name="show"
className="float-right"
color="secondary"
onClick={handleClick}
> Show </Button>
{isLoading ? <PrettyPrintJson
manifestId={serviceName.id}
manifestData={manifestData}
show={true}
onClose={() => setIsLoading(false)}
/> : null}
>
{" "}
Show{" "}
</Button>
{isLoading ? (
<PrettyPrintJson
manifestId={serviceName.id}
manifestData={manifestData}
show={true}
onClose={() => setIsLoading(false)}
/>
) : null}
</div>
</div>
);