1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

[eslint] updated eslintrc and improved the code (#4702)

This commit is contained in:
llj
2020-11-02 13:56:35 +08:00
committed by GitHub
parent ed3e5fc416
commit 04f29704b3
337 changed files with 1586 additions and 1585 deletions

View File

@@ -69,8 +69,8 @@ class FileView extends React.Component {
if (this.state.isLocked) {
seafileAPI.unlockfile(repoID, filePath).then((res) => {
this.setState({
isLocked: false,
lockedByMe: false
isLocked: false,
lockedByMe: false
});
}).catch((error) => {
const errorMsg = Utils.getErrorMsg(error);
@@ -86,7 +86,7 @@ class FileView extends React.Component {
const errorMsg = Utils.getErrorMsg(error);
toaster.danger(errorMsg);
});
}
}
}
render() {
@@ -98,7 +98,7 @@ class FileView extends React.Component {
isLocked={this.state.isLocked}
toggleStar={this.toggleStar}
/>
<FileToolbar
<FileToolbar
isLocked={this.state.isLocked}
lockedByMe={this.state.lockedByMe}
onSave={this.props.onSave}