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();

View File

@@ -21,7 +21,7 @@ final connectToServerProvider = AutoDisposeFutureProvider<bool>.internal(
);
typedef ConnectToServerRef = AutoDisposeFutureProviderRef<bool>;
String _$connectHash() => r'348a51c7ab10af474e09ec3ffdcedffa46156695';
String _$connectHash() => r'946ac6cce15a0ac9b3a7f8c1b606b3782e64f5e7';
/// See also [Connect].
@ProviderFor(Connect)