| 1 | import { Interaction } from "@web/public/interaction"; |
| 2 | import { registry } from "@web/core/registry"; |
| 3 | |
| 4 | export class SearchBarBtnEdit extends Interaction { |
| 5 | static selector = ".o_searchbar_form .oe_search_button"; |
| 6 | |
| 7 | dynamicContent = { |
| 8 | _root: { |
| 9 | "t-on-click": this.onClick, |
| 10 | }, |
| 11 | }; |
| 12 | |
| 13 | onClick(ev) { |
| 14 | ev.preventDefault(); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | registry.category("public.interactions.edit").add("website.search_bar_btn", { |
| 19 | Interaction: SearchBarBtnEdit, |
| 20 | }); |