mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
Fix eslint warnings (#5635)
* 01 fix eslint warnings * fix code warnings * fix code warnings * fix code warnings * fix code warnings * fix code warnings
This commit is contained in:
@@ -19,11 +19,11 @@ class ViewLinkDialog extends React.Component {
|
||||
copyToClipBoard = () => {
|
||||
copy(this.props.currentLinkHref);
|
||||
let message = gettext('Link has been copied to clipboard');
|
||||
toaster.success(message), {
|
||||
toaster.success(message, {
|
||||
duration: 2
|
||||
};
|
||||
});
|
||||
this.props.toggle();
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const href = this.props.currentLinkHref;
|
||||
@@ -31,7 +31,7 @@ class ViewLinkDialog extends React.Component {
|
||||
<Modal isOpen={true} toggle={this.props.toggle}>
|
||||
<ModalHeader toggle={this.props.toggle}>{gettext('Link')}</ModalHeader>
|
||||
<ModalBody>
|
||||
<p><a target="_blank" href={href}>{href}</a></p>
|
||||
<p><a target="_blank" href={href} rel="noreferrer">{href}</a></p>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="secondary" onClick={this.props.toggle}>{gettext('Cancel')}</Button>{' '}
|
||||
|
Reference in New Issue
Block a user