1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

Automatically update pages without having to manually update the page

This commit is contained in:
zxj96
2019-05-09 14:49:21 +08:00
parent cd2a73eee5
commit 893adc8f49

View File

@@ -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(
<span>
{gettext('This folder has been updated. ')}
<a href='' >{gettext('Refresh')}</a>
</span>,
{id: 'repo_updated', duration: 3600}
);
this.loadDirentList(this.state.path);
}
});
}