mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
20 lines
541 B
JavaScript
20 lines
541 B
JavaScript
|
|
const { Component } = owl;
|
||
|
|
import { ComponentsTab } from "./components_tab/components_tab";
|
||
|
|
import { Tab } from "./tab/tab";
|
||
|
|
import { ProfilerTab } from "./profiler_tab/profiler_tab";
|
||
|
|
import { useStore } from "../store/store";
|
||
|
|
|
||
|
|
export class DevtoolsWindow extends Component {
|
||
|
|
static props = [];
|
||
|
|
static template = "devtools.DevtoolsWindow";
|
||
|
|
static components = { ComponentsTab, Tab, ProfilerTab };
|
||
|
|
setup() {
|
||
|
|
this.store = useStore();
|
||
|
|
}
|
||
|
|
|
||
|
|
selectFrame(ev) {
|
||
|
|
const val = ev.target.value;
|
||
|
|
this.store.selectFrame(val);
|
||
|
|
}
|
||
|
|
}
|