Skip to content

Commit

Permalink
HPCC-32170 ECL Watch v9 fix ZAP dialog relative time param
Browse files Browse the repository at this point in the history
corrects the RelativeTimeRangeBuffer request param on the ZAP dialog

Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Jun 27, 2024
1 parent 5223d6f commit 626baa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions esp/src/src-react/components/forms/ZAPDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ interface ZAPDialogValues {
StartDate?: string;
EndDate?: string;
};
RelativeLogTimeRangeBuffer?: string;
RelativeTimeRangeBuffer?: string;
LineLimit?: string;
LineStartFrom?: string;
SelectColumnMode?: ColumnMode;
Expand Down Expand Up @@ -103,7 +103,7 @@ const defaultValues: ZAPDialogValues = {
StartDate: "",
EndDate: "",
},
RelativeLogTimeRangeBuffer: "",
RelativeTimeRangeBuffer: "",
LineLimit: "10000",
LineStartFrom: "0",
SelectColumnMode: ColumnMode.DEFAULT,
Expand Down Expand Up @@ -464,7 +464,7 @@ export const ZAPDialog: React.FunctionComponent<ZAPDialogProps> = ({
rules={{
validate: {
hasValue: (value, formValues) => {
if (value === "" && formValues.LogFilter.RelativeLogTimeRangeBuffer === "") {
if (value === "" && formValues.LogFilter.RelativeTimeRangeBuffer === "") {
return nlsHPCC.LogFilterTimeRequired;
}
return true;
Expand Down Expand Up @@ -496,14 +496,14 @@ export const ZAPDialog: React.FunctionComponent<ZAPDialogProps> = ({
}
/>
<Controller
control={control} name="LogFilter.RelativeLogTimeRangeBuffer"
control={control} name="LogFilter.RelativeTimeRangeBuffer"
render={({
field: { onChange, name: fieldName, value },
fieldState: { error }
}) => <TextField
name={fieldName}
onChange={onChange}
label={nlsHPCC.RelativeLogTimeRange}
label={nlsHPCC.RelativeTimeRange}
onRenderLabel={(props: CustomLabelProps) => <CustomLabel
id={`${fieldName}_Label`}
tooltip={nlsHPCC.LogFilterRelativeTimeRangeTooltip}
Expand Down
2 changes: 1 addition & 1 deletion esp/src/src/nls/hpcc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ export = {
Recycling: "Recycling",
RedBook: "Red Book",
Refresh: "Refresh",
RelativeLogTimeRange: "Relative Log Time Range",
RelativeTimeRange: "Relative Time Range",
ReleaseNotes: "Release Notes",
Reload: "Reload",
Remaining: "Remaining",
Expand Down

0 comments on commit 626baa0

Please sign in to comment.