widget:ticketdata: prepare mail_cc or mail_to change handling
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -56,6 +56,10 @@ struct Environment {
|
||||
pub struct TicketdataState {
|
||||
actions: Vec<TicketdataAction>,
|
||||
button_menu: Entity,
|
||||
// ComboBox item of mail_cc has been changed
|
||||
//pub change_mail_cc: bool,
|
||||
//ComboBox item of mail_to has been changed
|
||||
//pub change_mail_to: bool,
|
||||
//duration: Duration,
|
||||
lang: String,
|
||||
target: Entity
|
||||
@@ -102,7 +106,7 @@ impl TicketdataState {
|
||||
|
||||
// WIP: get selected items ComboBox'es
|
||||
//let mail_cc_index = *TicketdataView::selected_index_ref(&ctx.widget()) as usize;
|
||||
//let mail_cc_selected = TicketdataView::mail_cc_ref(&ctx.widget())[mail_cc_index].clone();
|
||||
//let mail_cc_selected = TicketdataView::items_mail_cc_ref(&ctx.widget(id))[mail_cc_index].clone();
|
||||
|
||||
// create Email structures
|
||||
let email = Email {
|
||||
@@ -199,6 +203,11 @@ impl State for TicketdataState {
|
||||
|
||||
for action in actions {
|
||||
match action {
|
||||
// TicketdataAction::ChangeMailCc() => {
|
||||
// let index = *TicketdataView::items_ref(&ctx.widget()) as usize;
|
||||
// let selected_index = TicketdataView::items_ref(&ctx.widget())[index].clone();
|
||||
// info!("new selection for mail index: {:?}", selected_index);
|
||||
// }
|
||||
TicketdataAction::ClearForm() => {
|
||||
info!("update: send_message {:?}", action);
|
||||
ctx.send_message(TicketdataAction::ClearForm(), self.target);
|
||||
|
||||
Reference in New Issue
Block a user