Skip to content

Commit c43f976

Browse files
lipalath-msdanielluo-msft
authored andcommitted
display textfield for grouped queries (with parenthesis)
1 parent e4e3940 commit c43f976

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

UI/web-app/src/components/HRQuerySource/HRQuerySource.base.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,26 @@ export const HRQuerySourceBase: React.FunctionComponent<HRQuerySourceProps> = (p
937937
disabled={isEditingExistingJob}
938938
/>
939939

940-
{(includeFilter || source.filter) ?
940+
{((source.filter && (source.filter.includes("(") || source.filter.includes(")")))) ?
941+
(
942+
<><div className={classNames.labelContainer}>
943+
<Label>{strings.HROnboarding.filter}</Label>
944+
<TooltipHost content={strings.HROnboarding.filterInfo} id="toolTipFilterId" calloutProps={{ gapSpace: 0 }}>
945+
<IconButton title={strings.HROnboarding.filterInfo} iconProps={{ iconName: "Info" }} aria-describedby="toolTipFilterId" />
946+
</TooltipHost>
947+
</div>
948+
<TextField
949+
placeholder={strings.HROnboarding.filterPlaceHolder}
950+
multiline rows={3}
951+
resizable={true}
952+
value={source.filter?.toString()}
953+
onChange={handleFilterChange}
954+
styles={{ root: classNames.textField, fieldGroup: classNames.textFieldGroup }}
955+
validateOnLoad={false}
956+
validateOnFocusOut={false}
957+
disabled={isEditingExistingJob}
958+
></TextField></>
959+
) : attributes && attributes.length > 0 && (includeFilter || source.filter) ?
941960
(
942961
<div>
943962
<DetailsList

0 commit comments

Comments
 (0)