mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
rename method
This commit is contained in:
parent
10737998a9
commit
10edad5cb2
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ impl Widget {
|
|||
let alert_dialog = alert_dialog.clone();
|
||||
move || {
|
||||
// Deactivate apply button if the form values could not be processed
|
||||
alert_dialog.set_response_enabled(RESPONSE_APPLY.0, form.is_valid());
|
||||
alert_dialog.set_response_enabled(RESPONSE_APPLY.0, form.is_applicable());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ impl Form {
|
|||
// Actions
|
||||
|
||||
/// Validate `Self` components match current selection
|
||||
pub fn is_valid(&self) -> bool {
|
||||
pub fn is_applicable(&self) -> bool {
|
||||
match self.list.value() {
|
||||
Value::GenerateNewAuth => self.name.is_valid(),
|
||||
Value::ImportPem => self.file.is_valid(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue