[FIX] web: set props of ProfilingItem, SetDefaultDialog

closes odoo/odoo#105251

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
This commit is contained in:
Denis Ledoux
2022-11-21 14:56:53 +01:00
parent 5631887594
commit 265c2777b4
2 changed files with 9 additions and 1 deletions
@@ -3,7 +3,7 @@
import { DropdownItem } from "@web/core/dropdown/dropdown_item";
import { useBus, useService } from "@web/core/utils/hooks";
import { Component } from "@odoo/owl";
import { Component, EventBus } from "@odoo/owl";
export class ProfilingItem extends Component {
setup() {
@@ -30,3 +30,6 @@ export class ProfilingItem extends Component {
}
ProfilingItem.components = { DropdownItem };
ProfilingItem.template = "web.DebugMenu.ProfilingItem";
ProfilingItem.props = {
bus: { type: EventBus },
};
@@ -304,6 +304,11 @@ class SetDefaultDialog extends Component {
}
SetDefaultDialog.template = "web.DebugMenu.SetDefaultDialog";
SetDefaultDialog.components = { Dialog };
SetDefaultDialog.props = {
resModel: { type: String },
component: { type: Component },
close: { type: Function },
};
export function setDefaults({ component, env }) {
return {