add status bar to view gallery for design

This commit is contained in:
Bruno Windels 2020-05-05 23:18:44 +02:00
parent 22821af346
commit d0f09c5334

View File

@ -24,6 +24,19 @@
}
</script>
<h1>View Gallery</h1>
<h2 name="session-status">Session Status</h2>
<div id="session-status" class="brawl"></div>
<script id="main" type="module">
import {SessionStatusView} from "./session/SessionStatusView.js";
const view = new SessionStatusView(vm({
isShown: true,
statusLabel: "Doing something something",
isWaiting: true,
isConnectNowShown: true,
connectNow: () => alert("connecting now")
}));
document.getElementById("login").appendChild(view.mount());
</script>
<h2 name="login">Login</h2>
<div id="login" class="brawl"></div>
<script id="main" type="module">