mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
fix form validation
This commit is contained in:
parent
c62bcfbe05
commit
896fdc6a1a
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user