1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00
* fix-loading

* fix-group-dialog
This commit is contained in:
Michael An
2019-03-07 12:23:44 +08:00
committed by Daniel Pan
parent c986982f5c
commit 425f629488
4 changed files with 8 additions and 6 deletions

View File

@@ -145,7 +145,8 @@ class Draft extends React.Component {
const url = 'history-' + preCommitID + '-' + currentCommitID;
this.setURL(url);
this.setState({
activeItem: activeItem
activeItem: activeItem,
isLoading: true,
});
axios.all([
seafileAPI.getFileRevision(draftRepoID, currentCommitID, currentItem.path),
@@ -417,7 +418,8 @@ class Draft extends React.Component {
setDiffViewerContent = (newContent, prevContent) => {
this.setState({
draftContent: newContent,
draftOriginContent: prevContent
draftOriginContent: prevContent,
isLoading: false,
});
}