mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 21:30:39 +00:00
fix rename file tag bug
This commit is contained in:
@@ -123,6 +123,7 @@ class DirTool extends React.Component {
|
|||||||
onClose={this.onCloseRepoTagDialog}
|
onClose={this.onCloseRepoTagDialog}
|
||||||
toggleCancel={this.onUpdateRepoTagToggle}
|
toggleCancel={this.onUpdateRepoTagToggle}
|
||||||
onDeleteRepoTag={this.props.onDeleteRepoTag}
|
onDeleteRepoTag={this.props.onDeleteRepoTag}
|
||||||
|
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@ const propTypes = {
|
|||||||
repoID: PropTypes.string.isRequired,
|
repoID: PropTypes.string.isRequired,
|
||||||
toggleCancel: PropTypes.func.isRequired,
|
toggleCancel: PropTypes.func.isRequired,
|
||||||
onDeleteRepoTag: PropTypes.func.isRequired,
|
onDeleteRepoTag: PropTypes.func.isRequired,
|
||||||
|
updateUsedRepoTags: PropTypes.func.isRequired,
|
||||||
onClose: PropTypes.func.isRequired
|
onClose: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -48,6 +49,7 @@ class UpdateTagDialog extends React.Component {
|
|||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
seafileAPI.updateRepoTag(repoID, tag_id, name, color).then(() => {
|
seafileAPI.updateRepoTag(repoID, tag_id, name, color).then(() => {
|
||||||
this.props.toggleCancel();
|
this.props.toggleCancel();
|
||||||
|
this.props.updateUsedRepoTags();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user