Changed error messages onboarding
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user