mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +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
|
// Actions
|
||||||
|
|
||||||
|
/// Validate form in current set
|
||||||
pub fn is_valid(&self) -> bool {
|
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