💥 Cambios antes/después de preparar cuerpo pág.
This commit is contained in:
parent
44550edafa
commit
0880964fd1
12 changed files with 63 additions and 63 deletions
|
|
@ -30,7 +30,7 @@ impl ModuleTrait for Admin {
|
|||
}
|
||||
|
||||
fn actions(&self) -> Vec<Action> {
|
||||
vec![action!(ActionBeforePreparePage => before_prepare_page)]
|
||||
vec![action!(ActionBeforePrepareBody => before_prepare_body)]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut service::web::ServiceConfig) {
|
||||
|
|
@ -40,6 +40,6 @@ impl ModuleTrait for Admin {
|
|||
}
|
||||
}
|
||||
|
||||
fn before_prepare_page(page: &mut Page) {
|
||||
fn before_prepare_body(page: &mut Page) {
|
||||
page.alter_body_classes(ClassesOp::Add, "test-admin");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue