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:
parent
e7823b05e1
commit
cb3cea2cb9
@ -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>
|
||||
|
@ -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}>
|
||||
|
@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -262,6 +262,9 @@ class EditorUtilities {
|
||||
return seafileAPI.addFileParticipants(repoID, filePath, emails);
|
||||
}
|
||||
|
||||
listRepoRelatedUsers() {
|
||||
return seafileAPI.listRepoRelatedUsers(repoID);
|
||||
}
|
||||
}
|
||||
|
||||
const editorUtilities = new EditorUtilities();
|
||||
|
Loading…
Reference in New Issue
Block a user