mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
after copy success, close the shared dialog (#2774)
This commit is contained in:
@@ -9,7 +9,8 @@ import toaster from '../toast';
|
||||
|
||||
const propTypes = {
|
||||
itemPath: PropTypes.string.isRequired,
|
||||
repoID: PropTypes.string.isRequired
|
||||
repoID: PropTypes.string.isRequired,
|
||||
closeShareDialog: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
class GenerateUploadLink extends React.Component {
|
||||
@@ -104,6 +105,7 @@ class GenerateUploadLink extends React.Component {
|
||||
let uploadLink = this.state.sharedUploadInfo.link;
|
||||
copy(uploadLink);
|
||||
toaster.success(gettext('Upload link is copied to the clipboard.'));
|
||||
this.props.closeShareDialog();
|
||||
}
|
||||
|
||||
deleteUploadLink = () => {
|
||||
|
Reference in New Issue
Block a user