Debian Codegraph @

addons/test_website/static/src/interactions/test_error.js

raw
1 import { Interaction } from "@web/public/interaction";
2 import { registry } from "@web/core/registry";
3
4 import { rpc } from "@web/core/network/rpc";
5
6 export class TestError extends Interaction {
7 static selector = ".rpc_error a";
8 dynamicContent = {
9 _root: { "t-on-click.prevent": () => rpc(this.el.getAttribute("href")) },
10 }
11 }
12
13 registry
14 .category("public.interactions")
15 .add("test_website.test_error", TestError);