listing slots within current hour

This commit is contained in:
2026-03-19 02:03:31 +00:00
parent 285a734ca0
commit 6d5807befc
3 changed files with 9 additions and 4 deletions

View File

@@ -18,10 +18,9 @@ onBeforeMount(async () => {
</header>
<article v-if="rooms">
<h2>Free Rooms:</h2>
{{ rooms.records }}
<p v-if="rooms.records.length == 0">No free rooms right now</p>
<ul v-for="(slot, index) in rooms.records">
<li :id="index">{{ slot }}</li>
<ul v-for="slot in rooms.records">
<li>Room: {{ slot.RoomName }}, from {{ slot.TimeStart.toString().split("T")[1] }} til {{ slot.TimeEnd.toString().split("T")[1] }}</li>
</ul>
</article>
</template>