refactor of device settings viewer / editor

This commit is contained in:
Stewart Allen 2024-06-01 16:49:26 -04:00
commit 18f9975390
7 changed files with 134 additions and 264 deletions

View file

@ -566,7 +566,6 @@ function platformChanged() {
h.bind($('ws-widgets'), api.widgets.all().map(w => {
let color;
return [
h.div([
h.button({
@ -585,12 +584,10 @@ function platformChanged() {
color = w.getColor();
}
}),
h.button(
{ onclick() { platformDelete(w) } },
[ h.i({ class:"fas fa-trash" }), ]
)
])
]
}));