1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +00:00

fix translation and warnings

This commit is contained in:
Michael An
2019-05-15 14:56:46 +08:00
parent 7adccf7ee0
commit 93a99421bc
17 changed files with 26 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import { siteRoot, filePath, fileName, historyRepoID } from './utils/constants';
import { fileName, historyRepoID } from './utils/constants';
import { Utils } from './utils/utils';
import CommonToolbar from './components/toolbar/common-toolbar';
import SidePanel from './pages/file-history/side-panel';
@@ -52,8 +52,8 @@ class FileHistory extends React.Component {
seafileAPI.getFileContent(res1.data)
]).then(axios.spread((content1, content2) => {
this.setDiffContent(content1.data, content2.data);
}));
}));
}));
} else {
seafileAPI.getFileRevision(historyRepoID, item.commit_id, item.path).then((res) => {
axios.all([
@@ -61,7 +61,7 @@ class FileHistory extends React.Component {
]).then(axios.spread((content1) => {
this.setDiffContent(content1.data, '');
}));
})
});
}
}