🚧 Working on actions

This commit is contained in:
Manuel Cillero 2024-03-27 07:12:42 +01:00
parent e732244a2e
commit d99a5aa586
23 changed files with 480 additions and 323 deletions

View file

@ -15,10 +15,10 @@ impl PackageTrait for Admin {
L10n::t("package_description", &LOCALES_ADMIN)
}
fn actions(&self) -> Vec<Action> {
fn actions(&self) -> Vec<ActionBox> {
actions![
action::page::BeforePrepareBody::new(before_prepare_body),
action::component::BeforePrepareComponent::<Menu>::new(before_prepare_menu)
action::component::BeforePrepare::<Menu>::new(before_prepare_menu)
.filter_by_referer_id("admin-menu-test"),
]
}