Merge pull request #720 from mkljczk/auth-dialog-submit
Add on_submit handler to NetworkAuth dialog
This commit is contained in:
commit
bd592e3e4e
1 changed files with 6 additions and 3 deletions
|
|
@ -3705,7 +3705,8 @@ impl Application for App {
|
||||||
},
|
},
|
||||||
auth_tx: auth_tx.clone(),
|
auth_tx: auth_tx.clone(),
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
|
.on_submit(Message::DialogComplete);
|
||||||
if !id_assigned {
|
if !id_assigned {
|
||||||
input = input.id(self.dialog_text_input.clone());
|
input = input.id(self.dialog_text_input.clone());
|
||||||
id_assigned = true;
|
id_assigned = true;
|
||||||
|
|
@ -3726,7 +3727,8 @@ impl Application for App {
|
||||||
},
|
},
|
||||||
auth_tx: auth_tx.clone(),
|
auth_tx: auth_tx.clone(),
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
|
.on_submit(Message::DialogComplete);
|
||||||
if !id_assigned {
|
if !id_assigned {
|
||||||
input = input.id(self.dialog_text_input.clone());
|
input = input.id(self.dialog_text_input.clone());
|
||||||
id_assigned = true;
|
id_assigned = true;
|
||||||
|
|
@ -3748,7 +3750,8 @@ impl Application for App {
|
||||||
},
|
},
|
||||||
auth_tx: auth_tx.clone(),
|
auth_tx: auth_tx.clone(),
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
|
.on_submit(Message::DialogComplete);
|
||||||
if !id_assigned {
|
if !id_assigned {
|
||||||
input = input.id(self.dialog_text_input.clone());
|
input = input.id(self.dialog_text_input.clone());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue