mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix form validation
This commit is contained in:
parent
c62bcfbe05
commit
896fdc6a1a
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue