mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
fix toggle tags popover (#5835)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Modal, Input, ModalHeader, ModalBody, ModalFooter, Label, Form, InputGroup, InputGroupAddon, FormGroup } from 'reactstrap';
|
||||
import { Button, Modal, Input, ModalHeader, ModalBody, ModalFooter, Label, Form, FormGroup } from 'reactstrap';
|
||||
import { gettext } from '../../utils/constants';
|
||||
|
||||
const propTypes = {
|
||||
@@ -26,7 +26,7 @@ class OrgAdminInviteUserDialog extends React.Component {
|
||||
this.setState({isAddingUser: true});
|
||||
this.props.handleSubmit(email.trim());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
handleKeyPress = (e) => {
|
||||
e.preventDefault();
|
||||
@@ -38,11 +38,11 @@ class OrgAdminInviteUserDialog extends React.Component {
|
||||
inputEmail = (e) => {
|
||||
let email = e.target.value.trim();
|
||||
this.setState({email: email});
|
||||
}
|
||||
};
|
||||
|
||||
toggle = () => {
|
||||
this.props.toggle();
|
||||
}
|
||||
};
|
||||
|
||||
validateInputParams() {
|
||||
let errMessage;
|
||||
|
@@ -20,10 +20,10 @@ class OrgAdminInviteUserViaWeiXinDialog extends React.Component {
|
||||
copy(this.props.invitationLink);
|
||||
this.props.toggle();
|
||||
const message = gettext('Internal link has been copied to clipboard');
|
||||
toaster.success(message), {
|
||||
toaster.success(message, {
|
||||
duration: 2
|
||||
};
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import React, { Fragment } from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
||||
import SeatableAccountSettingList from '../seatable-integration-account-setting-widgets/seatable-account-setting-list.js';
|
||||
|
Reference in New Issue
Block a user