mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
aff4019cde
This commit cleans up linting issues and proposes a new implementation for the devtools custom context menus.
21 lines
614 B
JavaScript
21 lines
614 B
JavaScript
const { Component } = owl;
|
|
import { ContextMenu } from "../context_menu/context_menu";
|
|
import { useStore } from "../store/store";
|
|
import { ComponentsTab } from "./components_tab/components_tab";
|
|
import { ProfilerTab } from "./profiler_tab/profiler_tab";
|
|
import { Tab } from "./tab/tab";
|
|
|
|
export class DevtoolsWindow extends Component {
|
|
static props = [];
|
|
static template = "devtools.DevtoolsWindow";
|
|
static components = { ComponentsTab, Tab, ProfilerTab, ContextMenu };
|
|
setup() {
|
|
this.store = useStore();
|
|
}
|
|
|
|
selectFrame(ev) {
|
|
const val = ev.target.value;
|
|
this.store.selectFrame(val);
|
|
}
|
|
}
|