1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

user-select-translation (#2956)

This commit is contained in:
Michael An
2019-02-18 16:49:38 +08:00
committed by Daniel Pan
parent 8f383c938c
commit 24d39dfe64
7 changed files with 113 additions and 33 deletions

View File

@@ -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('Group not found')}</div>
);
};
class ShareToGroup extends React.Component {
constructor(props) {
@@ -267,6 +273,7 @@ class ShareToGroup extends React.Component {
maxMenuHeight={200}
inputId={'react-select-2-input'}
value={this.state.selectedOption}
components={{ NoOptionsMessage }}
/>
</td>
<td>