diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index 8738786316..1b8396c743 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -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(); diff --git a/frontend/src/utils/websocket-service.js b/frontend/src/utils/websocket-service.js index 400ed8595a..c721c38d3d 100644 --- a/frontend/src/utils/websocket-service.js +++ b/frontend/src/utils/websocket-service.js @@ -4,7 +4,6 @@ import { notificationServerUrl } from './constants'; class WebSocketClient { constructor(onMessageCallback, repoId) { - this.url = notificationServerUrl; // WebSocket address; this.repoId = repoId; this.socket = null;