refactor of device settings viewer / editor
This commit is contained in:
parent
818ce36168
commit
18f9975390
7 changed files with 134 additions and 264 deletions
|
|
@ -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" }), ]
|
||||
)
|
||||
|
||||
])
|
||||
]
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue