mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 18:30:53 +00:00
refresh draft list
This commit is contained in:
@@ -12,6 +12,7 @@ const propTypes = {
|
||||
updateDraftsList: PropTypes.func.isRequired,
|
||||
isLoadingDraft: PropTypes.bool.isRequired,
|
||||
draftList: PropTypes.arrayOf(PropTypes.object),
|
||||
getDrafts: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
class DraftContent extends React.Component {
|
||||
@@ -27,6 +28,7 @@ class DraftContent extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.props.getDrafts();
|
||||
document.addEventListener('click', this.onHideContextMenu);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user