1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 19:01:42 +00:00

change format

This commit is contained in:
Michael An
2025-04-02 18:32:39 +08:00
committed by 孙永强
parent 6d32b4409b
commit 247a5b06ae
2 changed files with 2 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ import SelectedDirentsToolbar from '../../components/toolbar/selected-dirents-to
import MetadataPathToolbar from '../../components/toolbar/metadata-path-toolbar';
import { eventBus } from '../../components/common/event-bus';
import WebSocketClient from '../../utils/websocket-service';
import '../../css/lib-content-view.css';
dayjs.extend(relativeTime);
@@ -190,8 +191,7 @@ class LibContentView extends React.Component {
this.updateDirent(dirent, 'lock_owner_name', '');
}
}
}
else if (data.type === 'repo-update') {
} else if (data.type === 'repo-update') {
seafileAPI.listDir(this.props.repoID, this.state.path, { 'with_thumbnail': true }).then(res => {
const { dirent_list, user_perm: userPerm, dir_id: dirID } = res.data;
const direntList = Utils.sortDirents(dirent_list.map(item => new Dirent(item)), this.state.sortBy, this.state.sortOrder);
@@ -454,7 +454,6 @@ class LibContentView extends React.Component {
// load data
loadDirData = (path) => {
// list used FileTags
this.updateUsedRepoTags();