[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user