1
0
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:
Michael An
2023-12-19 12:13:49 +08:00
committed by GitHub
parent 4e33771080
commit 6eec4688db
9 changed files with 48 additions and 26 deletions

View File

@@ -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;

View File

@@ -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 (

View File

@@ -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';