Compare commits

...

1 Commits

Author SHA1 Message Date
Beshoy Nabeih
d4f4c56b2a [FIX] developer/frontend: typo in the user menu registry example
X-original-commit: 6d30d81a76
2022-05-19 14:44:18 +02:00

View File

@@ -298,7 +298,7 @@ Example:
registry.category("user_menuitems").add("my item", (env) => {
return {
description: env._t("Technical Settings"),
callback: () => { env.services.action_manager.doAction(3); };
callback: () => { env.services.action_manager.doAction(3); },
hide: (Math.random() < 0.5),
};
}
});