mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-10 11:22:09 +00:00
username (#3038)
This commit is contained in:
parent
af3fc9b5b7
commit
34cdecf347
@ -27,7 +27,7 @@ class EditorUtilities {
|
|||||||
this.repoID = repoID;
|
this.repoID = repoID;
|
||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
this.serviceUrl = serviceUrl;
|
this.serviceUrl = serviceUrl;
|
||||||
this.name = userName;
|
this.name = userInfo.name;
|
||||||
this.contact_email = userInfo.contact_email;
|
this.contact_email = userInfo.contact_email;
|
||||||
this.fileName = fileName;
|
this.fileName = fileName;
|
||||||
this.userName = userName;
|
this.userName = userName;
|
||||||
@ -304,10 +304,18 @@ class MarkdownEditor extends React.Component {
|
|||||||
switch(option)
|
switch(option)
|
||||||
{
|
{
|
||||||
case 'related_files':
|
case 'related_files':
|
||||||
|
if (this.state.relatedFiles.length > 0) {
|
||||||
this.setState({
|
this.setState({
|
||||||
showRelatedFileDialog: true,
|
showRelatedFileDialog: true,
|
||||||
showMarkdownEditorDialog: true,
|
showMarkdownEditorDialog: true,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.setState({
|
||||||
|
showAddRelatedFileDialog: true,
|
||||||
|
showMarkdownEditorDialog: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'tags':
|
case 'tags':
|
||||||
this.setState({
|
this.setState({
|
||||||
|
Loading…
Reference in New Issue
Block a user