fix form validation

This commit is contained in:
yggverse 2024-11-21 12:20:59 +02:00
parent c62bcfbe05
commit 896fdc6a1a

View File

@ -57,7 +57,11 @@ impl Form {
// Actions
/// Validate form in current set
pub fn is_valid(&self) -> bool {
self.name.is_valid() // @TODO
match self.list.selected() {
Value::GENERATE_NEW_AUTH => self.name.is_valid(),
_ => true,
}
}
}