about summary refs log tree commit diff
path: root/MatrixUtils.Web/Pages/Client/ClientComponents/ClientRoomList.razor
blob: 845f30d01ce6d6f3c2e7c9bbae1f53acfddfecd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@using ClientContext = MatrixUtils.Web.Pages.Client.Index.ClientContext
@* user header and room list *@
@foreach (var room in Data.SyncWrapper.Rooms) {
    <LinkButton OnClick="@(async () => Data.SelectedRoom = room)" Color="@(Data.SelectedRoom == room ? "#FF00FF" : "")">
        @room.RoomName
    </LinkButton>
    <br/>
}

@code {

    [Parameter]
    public ClientContext Data { get; set; } = null!;

}