mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-15 03:13:20 +08:00
fix hound
This commit is contained in:
parent
3179a7abf5
commit
6a5bafd07b
1 changed files with 2 additions and 3 deletions
|
@ -61,16 +61,15 @@ class InviteUsersModal extends Component<Props, State> {
|
||||||
|
|
||||||
handleInputChange(inputTags: Array<string>): void {
|
handleInputChange(inputTags: Array<string>): void {
|
||||||
if (inputTags.length > 0) {
|
if (inputTags.length > 0) {
|
||||||
(this: any).setState({ inputTags: inputTags, inviteUserButtonDisabled: false });
|
(this: any).setState({ inputTags, inviteUserButtonDisabled: false });
|
||||||
} else {
|
} else {
|
||||||
(this: any).setState({ inputTags: inputTags, inviteUserButtonDisabled: true });
|
(this: any).setState({ inputTags, inviteUserButtonDisabled: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inviteAs(role: number): void {
|
inviteAs(role: number): void {
|
||||||
inviteUsersToTeam(role, this.state.inputTags, this.props.team.id)
|
inviteUsersToTeam(role, this.state.inputTags, this.props.team.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log(response);
|
|
||||||
(this: any).setState({
|
(this: any).setState({
|
||||||
inviteResults: response,
|
inviteResults: response,
|
||||||
showInviteUsersResults: true
|
showInviteUsersResults: true
|
||||||
|
|
Loading…
Reference in a new issue