mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Added cache configuration and changed added client validation
This commit is contained in:
parent
569ab7d569
commit
313b76740a
11 changed files with 302 additions and 167 deletions
|
@ -74,22 +74,6 @@ void openSafeSearchModal({
|
|||
);
|
||||
}
|
||||
|
||||
bool checkValidValues({
|
||||
required TextEditingController nameController,
|
||||
required List<ControllerListItem> identifiersControllers
|
||||
}) {
|
||||
if (
|
||||
nameController.text != '' &&
|
||||
identifiersControllers.isNotEmpty &&
|
||||
identifiersControllers[0].controller.text != ''
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void openClientFormModal({
|
||||
required BuildContext context,
|
||||
required double width,
|
||||
|
@ -123,4 +107,10 @@ void openClientFormModal({
|
|||
onDelete: onDelete,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
bool validateNumber(String value) {
|
||||
if (value == "") return true;
|
||||
final regexp = RegExp(r'^\d+$');
|
||||
return regexp.hasMatch(value);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue