mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
user-select-translation (#2956)
This commit is contained in:
@@ -89,6 +89,12 @@ const propTypes = {
|
||||
repoID: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
const NoOptionsMessage = (props) => {
|
||||
return (
|
||||
<div {...props.innerProps} style={{margin: '6px 10px', textAlign: 'center', color: 'hsl(0,0%,50%)'}}>{gettext('User not found')}</div>
|
||||
);
|
||||
};
|
||||
|
||||
class ShareToUser extends React.Component {
|
||||
|
||||
constructor(props) {
|
||||
@@ -284,6 +290,7 @@ class ShareToUser extends React.Component {
|
||||
loadOptions={this.loadOptions}
|
||||
onChange={this.handleSelectChange}
|
||||
value={this.state.selectedOption}
|
||||
components={{ NoOptionsMessage }}
|
||||
maxMenuHeight={200}
|
||||
isMulti
|
||||
isFocused
|
||||
|
Reference in New Issue
Block a user