Mejora y simplifica la gestión global de acciones
This commit is contained in:
parent
7c8f51ba86
commit
67ddb8d899
29 changed files with 184 additions and 206 deletions
|
|
@ -21,4 +21,14 @@ impl ModuleTrait for Admin {
|
|||
.route("", app::web::get().to(summary::summary))
|
||||
);
|
||||
}
|
||||
|
||||
fn actions(&self) -> Vec<ActionItem> {
|
||||
vec![
|
||||
action_item!(ActionBeforeRenderPage => before_render_page)
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
fn before_render_page(page: &mut Page) {
|
||||
page.alter_body_classes("test-admin", ClassesOp::Add);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue