widgets: policycheck_view typo cleanup
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -13,7 +13,7 @@ use crate::{
|
|||||||
callbacks::policycheck_state::*,
|
callbacks::policycheck_state::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Macro that initializes the widget structures/variables for our view (essential!)
|
// Macro that initializes the widget structures/variables for our view
|
||||||
widget!(
|
widget!(
|
||||||
/// Dialog to enter a policy identifier/number.
|
/// Dialog to enter a policy identifier/number.
|
||||||
/// This identifier is checked agains a map of valid policy codes.
|
/// This identifier is checked agains a map of valid policy codes.
|
||||||
@@ -185,10 +185,11 @@ impl Template for PolicyCheckView {
|
|||||||
// .on_mouse_down | .on_mouse_move | .on_mouse_up (move |ctx, entity| {
|
// .on_mouse_down | .on_mouse_move | .on_mouse_up (move |ctx, entity| {
|
||||||
// state(id, states).action(Action::AddItem);
|
// state(id, states).action(Action::AddItem);
|
||||||
// })
|
// })
|
||||||
// .on_click(move |states, _| {
|
//.on_key_down(move |ctx, _| {
|
||||||
// state(id, states).action(Action::AddItem);
|
// ctx.get_mut::<PolicyCheckState>(id)
|
||||||
|
// .action(Action::ImportData);
|
||||||
// true
|
// true
|
||||||
// })
|
//})
|
||||||
.build(ctx),
|
.build(ctx),
|
||||||
)
|
)
|
||||||
.child(policy_check_button_result)
|
.child(policy_check_button_result)
|
||||||
@@ -297,7 +298,7 @@ impl Template for PolicyCheckView {
|
|||||||
.enabled(true)
|
.enabled(true)
|
||||||
.build(ctx);
|
.build(ctx);
|
||||||
|
|
||||||
// Starter page: check policy numbers
|
// Starter page: check policy numbers
|
||||||
self.name("PolicyCheckView")
|
self.name("PolicyCheckView")
|
||||||
// initialize struct (derived default macro)
|
// initialize struct (derived default macro)
|
||||||
.policy_check(PolicyCheck::default())
|
.policy_check(PolicyCheck::default())
|
||||||
|
|||||||
Reference in New Issue
Block a user