mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Add placeholder text when user selects a fuzzy search on labels
This commit is contained in:
@@ -195,6 +195,11 @@ function AdvancedSearch({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const renderTextInput = () => {
|
const renderTextInput = () => {
|
||||||
|
let placeholderText;
|
||||||
|
if (keySelection === 'labels' && lookupSelection === 'search') {
|
||||||
|
placeholderText = 'e.g. label_1,label_2';
|
||||||
|
}
|
||||||
|
|
||||||
if (isTextInputDisabled) {
|
if (isTextInputDisabled) {
|
||||||
return (
|
return (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -222,6 +227,7 @@ function AdvancedSearch({
|
|||||||
value={(!keySelection && t`First, select a key`) || searchValue}
|
value={(!keySelection && t`First, select a key`) || searchValue}
|
||||||
onChange={setSearchValue}
|
onChange={setSearchValue}
|
||||||
onKeyDown={handleAdvancedTextKeyDown}
|
onKeyDown={handleAdvancedTextKeyDown}
|
||||||
|
placeholder={placeholderText}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user