diff --git a/frontend/src/components/cur-dir-path/dir-tool.js b/frontend/src/components/cur-dir-path/dir-tool.js index 8facc62c66..fa5f33e452 100644 --- a/frontend/src/components/cur-dir-path/dir-tool.js +++ b/frontend/src/components/cur-dir-path/dir-tool.js @@ -123,6 +123,7 @@ class DirTool extends React.Component { onClose={this.onCloseRepoTagDialog} toggleCancel={this.onUpdateRepoTagToggle} onDeleteRepoTag={this.props.onDeleteRepoTag} + updateUsedRepoTags={this.props.updateUsedRepoTags} /> )} diff --git a/frontend/src/components/dialog/update-tag-dialog.js b/frontend/src/components/dialog/update-tag-dialog.js index 4c9db68c09..f701cf4508 100644 --- a/frontend/src/components/dialog/update-tag-dialog.js +++ b/frontend/src/components/dialog/update-tag-dialog.js @@ -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(); }); }