-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EPMRPP-87316 || Implement functionality to add Assignee and Milestone…
… for GitLab issue by typing its name EPMRPP-87317 || Implement functionality to add Epic and Assignees for GitLab issue by typing its name
- Loading branch information
Showing
9 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/src/components/fields/dynamicFieldsSection/fields/autocompleteField.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { AsyncAutocomplete } from 'componentLibrary/autocompletes/asyncAutocomplete'; | ||
import { DynamicField } from '../dynamicField'; | ||
|
||
export const AutocompleteField = ({ field, darkView, modalView, ...rest }) => { | ||
// todo change to command | ||
const getUri = (val) => `${field.url}${val}`; | ||
|
||
return ( | ||
<DynamicField field={field} darkView={darkView} modalView={modalView} {...rest}> | ||
<AsyncAutocomplete | ||
getURI={getUri} | ||
minLength={3} | ||
createWithoutConfirmation | ||
prohibitCreateOnBlur | ||
onBlur={() => {}} | ||
/> | ||
</DynamicField> | ||
); | ||
}; | ||
AutocompleteField.propTypes = { | ||
field: PropTypes.object.isRequired, | ||
defaultOptionValueKey: PropTypes.string.isRequired, | ||
darkView: PropTypes.bool, | ||
modalView: PropTypes.bool, | ||
}; | ||
AutocompleteField.defaultProps = { | ||
darkView: false, | ||
modalView: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/components/fields/dynamicFieldsSection/fields/multipleAutocompleteField.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { AsyncMultipleAutocomplete } from 'componentLibrary/autocompletes/asyncMultipleAutocomplete'; | ||
import { DynamicField } from '../dynamicField'; | ||
|
||
export const MultipleAutocompleteField = ({ field, darkView, modalView, ...rest }) => { | ||
// todo change to command | ||
const getUri = (val) => `${field.url}${val}`; | ||
|
||
return ( | ||
<DynamicField field={field} darkView={darkView} modalView={modalView} {...rest}> | ||
<AsyncMultipleAutocomplete getURI={getUri} minLength={3} createWithoutConfirmation editable /> | ||
</DynamicField> | ||
); | ||
}; | ||
MultipleAutocompleteField.propTypes = { | ||
field: PropTypes.object.isRequired, | ||
defaultOptionValueKey: PropTypes.string.isRequired, | ||
darkView: PropTypes.bool, | ||
modalView: PropTypes.bool, | ||
}; | ||
MultipleAutocompleteField.defaultProps = { | ||
darkView: false, | ||
modalView: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters