gap has its own view now

This commit is contained in:
Bruno Windels 2019-06-14 23:44:31 +02:00
parent 0a6c50b3bb
commit 5feca5e0f4

View file

@ -25,15 +25,6 @@ function renderTile(tile) {
switch (tile.shape) {
case "message":
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":
return html.li(null, [html.strong(null, tile.internalId+" "), tile.label]);
default: