1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 23:38:37 +00:00

Change editor participant (#3924)

* add API

* change style

t# interactive rebase in progress; onto 01448aa67
This commit is contained in:
Michael An 2019-07-27 16:33:18 +08:00 committed by Daniel Pan
parent e7823b05e1
commit cb3cea2cb9
4 changed files with 9 additions and 2 deletions

View File

@ -181,6 +181,7 @@ class DetailCommentList extends React.Component {
renderSuggestion={this.renderUserSuggestion}
style={defaultMentionStyle}
onAdd={(id, display) => {this.addParticipant(id);}}
appendSpaceOnAdd={true}
/>
</MentionsInput>
<Button className="submit-comment" color="primary" size="sm" onClick={this.onSubmit}>{gettext('Submit')}</Button>

View File

@ -227,6 +227,7 @@ class CommentPanel extends React.Component {
renderSuggestion={this.renderUserSuggestion}
style={defaultMentionStyle}
onAdd={(id, display) => {this.addParticipant(id);}}
appendSpaceOnAdd={true}
/>
</MentionsInput>
<Button className="submit-comment" color="primary" size="sm" onClick={this.onSubmit}>

View File

@ -55,15 +55,17 @@ const defaultStyle = {
overflow: 'auto',
position: 'absolute',
bottom: 14,
width: '150px',
},
item: {
width: 'auto',
padding: '5px 15px',
minWidth: '50px',
overflowX: 'auto',
borderBottom: '1px solid rgba(0,0,0,0.15)',
'&focused': {
backgroundColor: '#f19654',
color: '#fff',
fontWeight: '700',
fontWeight: '400',
},
},
},

View File

@ -262,6 +262,9 @@ class EditorUtilities {
return seafileAPI.addFileParticipants(repoID, filePath, emails);
}
listRepoRelatedUsers() {
return seafileAPI.listRepoRelatedUsers(repoID);
}
}
const editorUtilities = new EditorUtilities();