Changed error messages onboarding

This commit is contained in:
Juan Gilsanz Polo
2024-02-25 04:19:55 +01:00
parent 119c165bc8
commit bbfcec67cc
5 changed files with 26 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ class Connect extends _$Connect {
if (Regexps.ipAddress.hasMatch(value) || Regexps.domain.hasMatch(value)) {
state.ipDomainError = null;
} else {
state.ipDomainError = "Error";
state.ipDomainError = t.onboarding.invalidIpDomain;
}
state.validValues = validValues();
ref.notifyListeners();
@@ -57,7 +57,7 @@ class Connect extends _$Connect {
if (int.tryParse(value) != null && int.parse(value) <= 65535) {
state.portError = null;
} else {
state.portError = "Invalid port";
state.portError = t.onboarding.invalidPort;
}
}
state.validValues = validValues();
@@ -68,7 +68,7 @@ class Connect extends _$Connect {
if (value != "") {
state.tokenError = null;
} else {
state.tokenError = "Error";
state.tokenError = t.onboarding.tokenRequired;
}
state.validValues = validValues();
ref.notifyListeners();