Merge pull request #779 from kethinov/issue-438
Improve error messages on add new server dialog
This commit is contained in:
@@ -50,6 +50,8 @@ Release date: TBD
|
||||
[#707](https://github.com/mattermost/desktop/issues/707)
|
||||
- Fixed an issue that prevented typing in the form fields on the add server dialog when launched from the tab bar.
|
||||
[#780](https://github.com/mattermost/desktop/issues/780)
|
||||
- Fixed an issue that could cause an error message on the add new server dialog to be misleading.
|
||||
[#438](https://github.com/mattermost/desktop/issues/438)
|
||||
|
||||
#### Windows
|
||||
- Fixed `file://` protocol not working. But localhost URL will not continue to work.
|
||||
|
@@ -68,7 +68,17 @@ export default class NewTeamModal extends React.Component {
|
||||
}
|
||||
|
||||
getError() {
|
||||
return this.getTeamNameValidationError() || this.getTeamUrlValidationError();
|
||||
const nameError = this.getTeamNameValidationError();
|
||||
const urlError = this.getTeamUrlValidationError();
|
||||
|
||||
if (nameError && urlError) {
|
||||
return 'Name and URL are required.';
|
||||
} else if (nameError) {
|
||||
return nameError;
|
||||
} else if (urlError) {
|
||||
return urlError;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
validateForm() {
|
||||
|
Reference in New Issue
Block a user