From 893adc8f496fa14b15243854a5725c7dec5be07a Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Thu, 9 May 2019 14:49:21 +0800 Subject: [PATCH] Automatically update pages without having to manually update the page --- frontend/src/pages/lib-content-view/lib-content-view.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 90786f2657..e409809b94 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -193,13 +193,7 @@ class LibContentView extends React.Component { let { path, dirID } = this.state; seafileAPI.dirMetaData(repoID, path).then((res) => { if (res.data.id !== dirID) { - toaster.notify( - - {gettext('This folder has been updated. ')} - {gettext('Refresh')} - , - {id: 'repo_updated', duration: 3600} - ); + this.loadDirentList(this.state.path); } }); }