forked from mystiq/hydrogen-web
gap has its own view now
This commit is contained in:
parent
0a6c50b3bb
commit
5feca5e0f4
1 changed files with 0 additions and 9 deletions
|
@ -25,15 +25,6 @@ function renderTile(tile) {
|
||||||
switch (tile.shape) {
|
switch (tile.shape) {
|
||||||
case "message":
|
case "message":
|
||||||
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
|
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
|
||||||
case "gap": {
|
|
||||||
const button = html.button(null, (tile.isUp ? "🠝" : "🠟") + " fill gap");
|
|
||||||
const handler = () => {
|
|
||||||
tile.fill();
|
|
||||||
button.removeEventListener("click", handler);
|
|
||||||
};
|
|
||||||
button.addEventListener("click", handler);
|
|
||||||
return html.li(null, [html.strong(null, tile.internalId+" "), button]);
|
|
||||||
}
|
|
||||||
case "announcement":
|
case "announcement":
|
||||||
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
|
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue