mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
Automatically update pages without having to manually update the page
This commit is contained in:
@@ -193,13 +193,7 @@ class LibContentView extends React.Component {
|
|||||||
let { path, dirID } = this.state;
|
let { path, dirID } = this.state;
|
||||||
seafileAPI.dirMetaData(repoID, path).then((res) => {
|
seafileAPI.dirMetaData(repoID, path).then((res) => {
|
||||||
if (res.data.id !== dirID) {
|
if (res.data.id !== dirID) {
|
||||||
toaster.notify(
|
this.loadDirentList(this.state.path);
|
||||||
<span>
|
|
||||||
{gettext('This folder has been updated. ')}
|
|
||||||
<a href='' >{gettext('Refresh')}</a>
|
|
||||||
</span>,
|
|
||||||
{id: 'repo_updated', duration: 3600}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user