mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-11 20:01:40 +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}
|
renderSuggestion={this.renderUserSuggestion}
|
||||||
style={defaultMentionStyle}
|
style={defaultMentionStyle}
|
||||||
onAdd={(id, display) => {this.addParticipant(id);}}
|
onAdd={(id, display) => {this.addParticipant(id);}}
|
||||||
|
appendSpaceOnAdd={true}
|
||||||
/>
|
/>
|
||||||
</MentionsInput>
|
</MentionsInput>
|
||||||
<Button className="submit-comment" color="primary" size="sm" onClick={this.onSubmit}>{gettext('Submit')}</Button>
|
<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}
|
renderSuggestion={this.renderUserSuggestion}
|
||||||
style={defaultMentionStyle}
|
style={defaultMentionStyle}
|
||||||
onAdd={(id, display) => {this.addParticipant(id);}}
|
onAdd={(id, display) => {this.addParticipant(id);}}
|
||||||
|
appendSpaceOnAdd={true}
|
||||||
/>
|
/>
|
||||||
</MentionsInput>
|
</MentionsInput>
|
||||||
<Button className="submit-comment" color="primary" size="sm" onClick={this.onSubmit}>
|
<Button className="submit-comment" color="primary" size="sm" onClick={this.onSubmit}>
|
||||||
|
@ -55,15 +55,17 @@ const defaultStyle = {
|
|||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: 14,
|
bottom: 14,
|
||||||
|
width: '150px',
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
|
width: 'auto',
|
||||||
padding: '5px 15px',
|
padding: '5px 15px',
|
||||||
minWidth: '50px',
|
overflowX: 'auto',
|
||||||
borderBottom: '1px solid rgba(0,0,0,0.15)',
|
borderBottom: '1px solid rgba(0,0,0,0.15)',
|
||||||
'&focused': {
|
'&focused': {
|
||||||
backgroundColor: '#f19654',
|
backgroundColor: '#f19654',
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
fontWeight: '700',
|
fontWeight: '400',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -262,6 +262,9 @@ class EditorUtilities {
|
|||||||
return seafileAPI.addFileParticipants(repoID, filePath, emails);
|
return seafileAPI.addFileParticipants(repoID, filePath, emails);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
listRepoRelatedUsers() {
|
||||||
|
return seafileAPI.listRepoRelatedUsers(repoID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const editorUtilities = new EditorUtilities();
|
const editorUtilities = new EditorUtilities();
|
||||||
|
Loading…
Reference in New Issue
Block a user