1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

fix rename file tag bug

This commit is contained in:
Michael An
2019-04-22 13:42:22 +08:00
parent 17744246c3
commit 223b84edda
2 changed files with 3 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ class DirTool extends React.Component {
onClose={this.onCloseRepoTagDialog}
toggleCancel={this.onUpdateRepoTagToggle}
onDeleteRepoTag={this.props.onDeleteRepoTag}
updateUsedRepoTags={this.props.updateUsedRepoTags}
/>
)}

View File

@@ -9,6 +9,7 @@ const propTypes = {
repoID: PropTypes.string.isRequired,
toggleCancel: PropTypes.func.isRequired,
onDeleteRepoTag: PropTypes.func.isRequired,
updateUsedRepoTags: PropTypes.func.isRequired,
onClose: PropTypes.func.isRequired
};
@@ -48,6 +49,7 @@ class UpdateTagDialog extends React.Component {
let repoID = this.props.repoID;
seafileAPI.updateRepoTag(repoID, tag_id, name, color).then(() => {
this.props.toggleCancel();
this.props.updateUsedRepoTags();
});
}