widgets:main_view: update widget activation handling
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -32,10 +32,14 @@ widget!(MainView {
|
||||
|
||||
impl Template for MainView {
|
||||
fn template(self, _id: Entity, ctx: &mut BuildContext<'_>) -> Self {
|
||||
//let policycheck_view = PolicycheckView::new()
|
||||
let ticketdata_view = TicketdataView::new()
|
||||
.build(ctx);
|
||||
|
||||
let policycheck_view = PolicycheckView::new()
|
||||
.target(ticketdata_view.0)
|
||||
//.policy_number_count(0)
|
||||
//.policylist_view(id)
|
||||
// .build(ctx);
|
||||
.build(ctx);
|
||||
|
||||
// let policylist_view = PolicyListView::new()
|
||||
// .back_entity(policycheck_view.0)
|
||||
@@ -60,8 +64,8 @@ impl Template for MainView {
|
||||
// .child(policylist_view)
|
||||
.child(
|
||||
TabWidget::new()
|
||||
.tab(ID_POLICY_CHECK_VIEW, PolicycheckView::new().build(ctx))
|
||||
.tab(ID_TICKET_DATA_VIEW, TicketdataView::new().build(ctx))
|
||||
.tab(ID_POLICY_CHECK_VIEW, policycheck_view)
|
||||
.tab(ID_TICKET_DATA_VIEW, ticketdata_view)
|
||||
.tab(ID_LOCALIZATION_VIEW, LocalizationView::new().build(ctx))
|
||||
.tab(ID_CONFIGURATION_VIEW, ConfigurationView::new().build(ctx))
|
||||
.tab(ID_MENU_VIEW, MenuView::new().build(ctx))
|
||||
|
||||
Reference in New Issue
Block a user