Merge pull request #720 from mkljczk/auth-dialog-submit

Add on_submit handler to NetworkAuth dialog
This commit is contained in:
Jeremy Soller 2025-01-27 15:40:01 -07:00 committed by GitHub
commit bd592e3e4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3705,7 +3705,8 @@ impl Application for App {
},
auth_tx: auth_tx.clone(),
})
});
})
.on_submit(Message::DialogComplete);
if !id_assigned {
input = input.id(self.dialog_text_input.clone());
id_assigned = true;
@ -3726,7 +3727,8 @@ impl Application for App {
},
auth_tx: auth_tx.clone(),
})
});
})
.on_submit(Message::DialogComplete);
if !id_assigned {
input = input.id(self.dialog_text_input.clone());
id_assigned = true;
@ -3748,7 +3750,8 @@ impl Application for App {
},
auth_tx: auth_tx.clone(),
})
});
})
.on_submit(Message::DialogComplete);
if !id_assigned {
input = input.id(self.dialog_text_input.clone());
}