shellchat: update demo modals command to new interface

This commit is contained in:
Gianguido Sorà 2022-04-13 15:49:51 +02:00
parent 89c768625d
commit 8375fdf801

View file

@ -8,17 +8,13 @@ pub struct Ver {
// TODO: remove me
impl Ver {
fn modal(&self, env: &mut CommonEnv) {
log::info!("modal data: {:#?}", env.modals.get_text_multi(
"Get Text",
None,
None,
4,
Some(vec![
Some(std::string::String::from("first")),
Some(std::string::String::from("second")),
None,
Some(std::string::String::from("fourth")),
])))
log::info!("modal data: {:#?}", env.modals.alert_builder("Get Text")
.field(Some("first".to_string()), None)
.field(Some("second".to_string()), None)
.field(None, None)
.field(Some("fourth".to_string()), None)
.build()
);
}
}