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:
@@ -123,6 +123,7 @@ class DirTool extends React.Component {
|
||||
onClose={this.onCloseRepoTagDialog}
|
||||
toggleCancel={this.onUpdateRepoTagToggle}
|
||||
onDeleteRepoTag={this.props.onDeleteRepoTag}
|
||||
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user