[REF] devtools: linting and context menu rework

This commit cleans up linting issues and proposes a new implementation
for the devtools custom context menus.
This commit is contained in:
Julien Carion (juca)
2024-10-23 15:45:29 +02:00
committed by Géry Debongnie
parent 5ecb4809ff
commit aff4019cde
15 changed files with 373 additions and 218 deletions
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="devtools.ContextMenu">
<div class="custom-menu" t-ref="contextmenu">
<ul class="my-1">
<li t-foreach="props.items" t-as="item" t-key="item_index" t-if="item.show" t-esc="item.title" t-on-click.stop="() => this.onClickItem(item.action)" class="custom-menu-item py-1 px-4"/>
</ul>
</div>
</t>
</templates>