mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
rename method
This commit is contained in:
parent
10737998a9
commit
10edad5cb2
@ -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…
x
Reference in New Issue
Block a user