PLT-6751 Fixed error message when trying to join full team (#6657)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
9d082cfe77
Коммит
1897a7ea9e
@@ -83,18 +83,7 @@ export default class SignupController extends React.Component {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
() => {
|
this.handleInvalidInvite
|
||||||
this.setState({ // eslint-disable-line react/no-did-mount-set-state
|
|
||||||
noOpenServerError: true,
|
|
||||||
loading: false,
|
|
||||||
serverError: (
|
|
||||||
<FormattedMessage
|
|
||||||
id='signup_user_completed.invalid_invite'
|
|
||||||
defaultMessage='The invite link was invalid. Please speak with your Administrator to receive an invitation.'
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -113,18 +102,7 @@ export default class SignupController extends React.Component {
|
|||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
() => {
|
this.handleInvalidInvite
|
||||||
this.setState({ // eslint-disable-line react/no-did-mount-set-state
|
|
||||||
noOpenServerError: true,
|
|
||||||
loading: false,
|
|
||||||
serverError: (
|
|
||||||
<FormattedMessage
|
|
||||||
id='signup_user_completed.invalid_invite'
|
|
||||||
defaultMessage='The invite link was invalid. Please speak with your Administrator to receive an invitation.'
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -136,6 +114,26 @@ export default class SignupController extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleInvalidInvite = (err) => {
|
||||||
|
let serverError;
|
||||||
|
if (err.id === 'store.sql_user.save.max_accounts.app_error') {
|
||||||
|
serverError = err.message;
|
||||||
|
} else {
|
||||||
|
serverError = (
|
||||||
|
<FormattedMessage
|
||||||
|
id='signup_user_completed.invalid_invite'
|
||||||
|
defaultMessage='The invite link was invalid. Please speak with your Administrator to receive an invitation.'
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.setState({
|
||||||
|
noOpenServerError: true,
|
||||||
|
loading: false,
|
||||||
|
serverError
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
renderSignupControls() {
|
renderSignupControls() {
|
||||||
let signupControls = [];
|
let signupControls = [];
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user