about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-14 22:26:39 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-14 22:26:39 +0200
commitb48f78a381058c188ed61e6f372fbf86d95ad2f9 (patch)
tree178e5d85a92da68b42ffcc68cbbba9b8ea3c40fd /MatrixRoomUtils.Web/Pages/Rooms/Index.razor
parentChange syntax style (diff)
downloadMatrixUtils-b48f78a381058c188ed61e6f372fbf86d95ad2f9.tar.xz
Add changes
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/Rooms/Index.razor')
-rw-r--r--MatrixRoomUtils.Web/Pages/Rooms/Index.razor22
1 files changed, 22 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Web/Pages/Rooms/Index.razor b/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
new file mode 100644
index 0000000..17551c9
--- /dev/null
+++ b/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
@@ -0,0 +1,22 @@
+@page "/Rooms"
+<h3>Room list</h3>
+
+@if (Rooms != null) {
+    <RoomList Rooms="Rooms"></RoomList>
+}
+
+
+@code {
+
+    private List<Room> Rooms { get; set; }
+    
+    protected override async Task OnInitializedAsync()
+    {
+        await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage);
+
+        Rooms = await RuntimeCache.CurrentHomeServer.GetJoinedRooms();
+
+        await base.OnInitializedAsync();
+    }
+
+}
\ No newline at end of file