Skip to content

Commit

Permalink
HPCC-31708 ECL Watch v9 ZAP Dialog containerized log options
Browse files Browse the repository at this point in the history
The ZAP dialog should display the "Include worker logs" checkbox on
bare-metal; the "Include related logs" & "Include per-component logs"
checkboxes on containerized envs.

Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Apr 30, 2024
1 parent 54f70aa commit 97fbfa5
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions esp/src/src-react/components/forms/ZAPDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,30 +376,34 @@ export const ZAPDialog: React.FunctionComponent<ZAPDialogProps> = ({
/>}
/>
<div style={{ padding: "15px 0 7px 0" }}>
<div>
<Controller
control={control} name="IncludeThorSlaveLog"
render={({
field: { onChange, name: fieldName, value }
}) => <Checkbox name={fieldName} checked={value} onChange={onChange} label={nlsHPCC.IncludeSlaveLogs} />}
/>
</div>
<div style={{ marginTop: 2, marginBottom: 2 }}>
<Controller
control={control} name="IncludeRelatedLogs"
render={({
field: { onChange, name: fieldName, value }
}) => <Checkbox name={fieldName} checked={value} onChange={onChange} label={nlsHPCC.IncludeRelatedLogs} />}
/>
</div>
<div>
<Controller
control={control} name="IncludePerComponentLogs"
render={({
field: { onChange, name: fieldName, value }
}) => <Checkbox name={fieldName} checked={value} onChange={onChange} label={nlsHPCC.IncludePerComponentLogs} />}
/>
</div>
{!isContainer
? <div>
<Controller
control={control} name="IncludeThorSlaveLog"
render={({
field: { onChange, name: fieldName, value }
}) => <Checkbox name={fieldName} checked={value} onChange={onChange} label={nlsHPCC.IncludeSlaveLogs} />}
/>
</div>
: <div>
<div style={{ marginBottom: 4 }}>
<Controller
control={control} name="IncludeRelatedLogs"
render={({
field: { onChange, name: fieldName, value }
}) => <Checkbox name={fieldName} checked={value} onChange={onChange} label={nlsHPCC.IncludeRelatedLogs} />}
/>
</div>
<div>
<Controller
control={control} name="IncludePerComponentLogs"
render={({
field: { onChange, name: fieldName, value }
}) => <Checkbox name={fieldName} checked={value} onChange={onChange} label={nlsHPCC.IncludePerComponentLogs} />}
/>
</div>
</div>
}
<div style={{ paddingTop: "10px" }}>
<Controller
control={control} name="SendEmail"
Expand Down

0 comments on commit 97fbfa5

Please sign in to comment.