Skip to content

Commit

Permalink
add placeholders for path values
Browse files Browse the repository at this point in the history
review changes
/pull/97623#discussion_r620617999
  • Loading branch information
ashokaditya committed Apr 27, 2021
1 parent b2cf223 commit 6f2d0d7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,17 @@ export const ConditionEntryInput = memo<ConditionEntryInputProps>(
<EuiFieldText
name="value"
value={entry.value}
placeholder={
entry.field === ConditionEntryField.PATH
? entry.type === 'wildcard'
? os === OperatingSystem.WINDOWS
? `C:\\sample\\**\\*`
: `/opt/**/*`
: os === OperatingSystem.WINDOWS
? `C:\\sample\\path.exe`
: `/opt/bin/`
: undefined
}
fullWidth
required
onChange={handleValueUpdate}
Expand Down

0 comments on commit 6f2d0d7

Please sign in to comment.