Skip to content

Commit

Permalink
Merge pull request #17994 from jeclrsg/hpcc-30223-import-form-group-l…
Browse files Browse the repository at this point in the history
…abels

HPCC-30223 ECL Watch file import form label changes
  • Loading branch information
GordonSmith authored Nov 9, 2023
2 parents 531e746 + 2543ff6 commit c30676d
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
17 changes: 17 additions & 0 deletions esp/src/eclwatch/LZBrowseWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,23 @@ define([
});

this.checkReplicate();

if (dojoConfig.isContainer) {
const groupSelectIds = [
context.sprayFixedDestinationSelect.id ?? "",
context.sprayDelimitedDestinationSelect.id ?? "",
context.sprayXmlDestinationSelect.id ?? "",
context.sprayJsonDestinationSelect.id ?? "",
context.sprayVariableDestinationSelect.id ?? "",
context.sprayBlobDestinationSelect.id ?? ""
];
groupSelectIds.forEach(selectId => {
const label = selectId ? document.querySelector("[for='" + selectId + "']") : null;
if (label) {
label.innerText = this.i18n.TargetPlane + ":";
}
});
}
},

checkReplicate: function (value, checkBoxValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const BlobImportForm: React.FunctionComponent<BlobImportFormProps> = ({
fieldState: { error }
}) => <TargetGroupTextField
key="destGroup"
label={nlsHPCC.Group}
label={isContainer ? nlsHPCC.TargetPlane : nlsHPCC.Group}
required={true}
selectedKey={value}
placeholder={nlsHPCC.SelectValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const DelimitedImportForm: React.FunctionComponent<DelimitedImportFormPro
fieldState: { error }
}) => <TargetGroupTextField
key="destGroup"
label={nlsHPCC.Group}
label={isContainer ? nlsHPCC.TargetPlane : nlsHPCC.Group}
required={true}
selectedKey={value}
placeholder={nlsHPCC.SelectValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const FixedImportForm: React.FunctionComponent<FixedImportFormProps> = ({
fieldState: { error }
}) => <TargetGroupTextField
key="destGroup"
label={nlsHPCC.Group}
label={isContainer ? nlsHPCC.TargetPlane : nlsHPCC.Group}
required={true}
selectedKey={value}
placeholder={nlsHPCC.SelectValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const JsonImportForm: React.FunctionComponent<JsonImportFormProps> = ({
fieldState: { error }
}) => <TargetGroupTextField
key="destGroup"
label={nlsHPCC.Group}
label={isContainer ? nlsHPCC.TargetPlane : nlsHPCC.Group}
required={true}
selectedKey={value}
placeholder={nlsHPCC.SelectValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const VariableImportForm: React.FunctionComponent<VariableImportFormProps
fieldState: { error }
}) => <TargetGroupTextField
key="destGroup"
label={nlsHPCC.Group}
label={isContainer ? nlsHPCC.TargetPlane : nlsHPCC.Group}
required={true}
selectedKey={value}
placeholder={nlsHPCC.SelectValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const XmlImportForm: React.FunctionComponent<XmlImportFormProps> = ({
fieldState: { error }
}) => <TargetGroupTextField
key="destGroup"
label={nlsHPCC.Group}
label={isContainer ? nlsHPCC.TargetPlane : nlsHPCC.Group}
required={true}
selectedKey={value}
placeholder={nlsHPCC.SelectValue}
Expand Down
1 change: 1 addition & 0 deletions esp/src/src/nls/hpcc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,7 @@ export = {
Targets: "Targets",
TargetClusters: "Target Clusters",
TargetClustersLegacy: "Target Clusters (legacy)",
TargetPlane: "Target Plane",
TargetName: "Target Name",
TargetNamePlaceholder: "some::logical::name",
TargetRowTagRequired: "You must supply a target row tag",
Expand Down

0 comments on commit c30676d

Please sign in to comment.