wire up widget delete

This commit is contained in:
Stewart Allen 2024-05-31 19:10:31 -04:00
commit 4d675ff2a3

View file

@ -572,6 +572,7 @@ function platformChanged() {
h.button({
_: w.meta.file || 'no name',
id: `ws-${w.id}`,
class: "grow",
onmouseenter() {
color = w.getColor();
w.setColor(0x0088ff);
@ -585,7 +586,10 @@ function platformChanged() {
}
}),
h.button([ h.i({ class:"fas fa-trash" }) ])
h.button(
{ onclick() { platformDelete(w) } },
[ h.i({ class:"fas fa-trash" }), ]
)
])
]