Skip to content

Commit

Permalink
Update labels section example placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshiGupta committed Jun 16, 2021
1 parent fe0f165 commit d5cf335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const LabelSection: React.FC = () => {
<SelectorInput
onChange={(val) => setFieldValue('labels', SelectorInput.objectify(val))}
tags={labels}
placeholder="app.io/type=frontend"
/>
</FormSection>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/utils/selector-input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class SelectorInput extends React.Component {
autoFocus: this.props.autoFocus,
className: classNames('input', { 'invalid-tag': !isInputValid }),
onChange: this.handleInputChange.bind(this),
placeholder: _.isEmpty(tags) ? 'app=frontend' : '',
placeholder: _.isEmpty(tags) ? this.props.placeholder || 'app=frontend' : '',
spellCheck: 'false',
value: inputValue,
id: 'tags-input',
Expand Down

0 comments on commit d5cf335

Please sign in to comment.