👽️ Apply last Handle API changes
This commit is contained in:
parent
68c551bfb3
commit
088ffe7272
10 changed files with 37 additions and 63 deletions
|
|
@ -1,7 +1,5 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
new_handle!(MODULE_NODE);
|
||||
|
||||
new_static_locales!(LOCALES_NODE);
|
||||
|
||||
//mod entity;
|
||||
|
|
@ -9,11 +7,9 @@ mod migration;
|
|||
|
||||
pub struct Node;
|
||||
|
||||
impl ModuleTrait for Node {
|
||||
fn handle(&self) -> Handle {
|
||||
MODULE_NODE
|
||||
}
|
||||
impl_handle!(MODULE_NODE for Node);
|
||||
|
||||
impl ModuleTrait for Node {
|
||||
fn name(&self) -> L10n {
|
||||
L10n::t("module_name", &LOCALES_NODE)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue