Skip to content

Commit

Permalink
Code opt for the vsam stage
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshibobade21 committed Sep 2, 2024
1 parent 7d8c883 commit 0da9969
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/renderer/components/stages/Vsam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,19 @@ const Vsam = () => {
<div id="container-box-id">
<Box sx={{ position:'absolute', bottom: '1px', display: 'flex', flexDirection: 'row', p: 1, justifyContent: 'flex-start', [theme.breakpoints.down('lg')]: {flexDirection: 'column',alignItems: 'flex-start'}}}>
<Button variant="outlined" sx={{ textTransform: 'none', mr: 1 }} onClick={() => toggleEditorVisibility("yaml")}>View/Edit Yaml</Button>
{/* <Button variant="outlined" sx={{ textTransform: 'none', mr: 1 }} onClick={() => toggleEditorVisibility("jcl")}>View/Submit Job</Button> */}
<Button variant="outlined" sx={{ textTransform: 'none', mr: 1 }} onClick={() => toggleEditorVisibility("output")}>View Job Output</Button>
</Box>

<ContainerCard title="Vsam" description="Configure Zowe Vsam.">
{editorVisible && <EditorDialog contentType={contentType} isEditorVisible={editorVisible} toggleEditorVisibility={toggleEditorVisibility} onChange={(data: any) => {
const newData = init ? (Object.keys(setupYaml).length > 0 ? setupYaml : data?.zowe?.setup?.vsam) : (data?.zowe?.setup?.vsam ? data?.zowe?.setup?.vsam : data);
setInit(false);
setStageConfig(true, '', newData);

{ editorVisible &&
<EditorDialog
contentType={contentType}
isEditorVisible={editorVisible}
toggleEditorVisibility={toggleEditorVisibility}
onChange={handleFormChange}
/>
}
}/> }

<Box sx={{ width: '60vw' }}>
{!isFormValid && <div style={{color: 'red', fontSize: 'small', marginBottom: '20px'}}>{formError}</div>}
Expand Down

0 comments on commit 0da9969

Please sign in to comment.