diff options
Diffstat (limited to 'MatrixRoomUtils.Web/Shared')
-rw-r--r-- | MatrixRoomUtils.Web/Shared/NavMenu.razor | 9 | ||||
-rw-r--r-- | MatrixRoomUtils.Web/Shared/RoomListItem.razor | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Web/Shared/NavMenu.razor b/MatrixRoomUtils.Web/Shared/NavMenu.razor index 0027901..a033925 100644 --- a/MatrixRoomUtils.Web/Shared/NavMenu.razor +++ b/MatrixRoomUtils.Web/Shared/NavMenu.razor @@ -15,6 +15,10 @@ </NavLink> </div> <div class="nav-item px-3"> + <h5 style="margin-left: 1em;">Main tools</h5> + <hr style="margin-bottom: 0em;"/> + </div> + <div class="nav-item px-3"> <NavLink class="nav-link" href="About"> <span class="oi oi-plus" aria-hidden="true"></span> About MRU </NavLink> @@ -39,6 +43,11 @@ <span class="oi oi-plus" aria-hidden="true"></span> Room state viewer </NavLink> </div> + <div class="nav-item px-3"> + <h5 style="margin-left: 1em;">Plural tools</h5> + <hr style="margin-bottom: 0em;"/> + </div> + </nav> </div> diff --git a/MatrixRoomUtils.Web/Shared/RoomListItem.razor b/MatrixRoomUtils.Web/Shared/RoomListItem.razor index d2c844d..15ca5c0 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListItem.razor +++ b/MatrixRoomUtils.Web/Shared/RoomListItem.razor @@ -33,6 +33,12 @@ protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); + + if(!RuntimeCache.WasLoaded) { + Console.WriteLine("Loading from local storage"); + await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage); + } + if (Room == null) { if (RoomId == null) @@ -80,7 +86,7 @@ { hasCustomProfileName = _name.GetString() != profile.DisplayName; profileName = _name.GetString(); - Console.WriteLine($"{profile.DisplayName} - {_name.GetString()}: {hasCustomProfileName}"); + // Console.WriteLine($"{profile.DisplayName} - {_name.GetString()}: {hasCustomProfileName}"); } else { @@ -88,6 +94,8 @@ } } } + if(Random.Shared.Next(100) == 1) + await LocalStorageWrapper.SaveToLocalStorage(LocalStorage); } } \ No newline at end of file |