From b97c475d2f5b6c4c87719beeab02d1aeacf8a288 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 29 Aug 2023 01:59:45 +1000 Subject: Fixed bug in tab containers where a state change could result in an empty tab pane being shown --- Pages/Component/TabContainer.razor | 4 +++- Todo.md | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Pages/Component/TabContainer.razor b/Pages/Component/TabContainer.razor index ed61f49..3caab0b 100644 --- a/Pages/Component/TabContainer.razor +++ b/Pages/Component/TabContainer.razor @@ -16,7 +16,7 @@ [Parameter] public RenderFragment ChildContent { get; set; } - public TabPane ActivePane { get; set; } + public TabPane? ActivePane { get; set; } List Panes = new(); public void AddPane(TabPane tabPane) { @@ -27,6 +27,8 @@ } public void RemovePane(TabPane tabPane) { + if(ActivePane == tabPane) + ActivePane = Panes.ElementAtOrDefault(0); Panes.Remove(tabPane); StateHasChanged(); } diff --git a/Todo.md b/Todo.md index d7416c6..9a985fa 100644 --- a/Todo.md +++ b/Todo.md @@ -1,16 +1,24 @@ # Bugs - Input not focused - Tag aliases/names not verified to be unique + - Tag selection dialog has no max height + - Setting implicit tags removes builtin tags + - UserService listeners don't seem to be removed after disposal # Short-term Features - Progressive page loading - Media metadata (width, height, etc) - Proper thumbnail generation + - Deleting media also deletes thumbnails - Video support - User/security support - About page #Long-term Features + - Search tags from ViewMedia page + - Loading animations + - Keyboard shortcuts + - Find source - Collections - Jump into ingest feed at random point - Rating system @@ -19,3 +27,5 @@ - Rating system - Audit log - Journaled operations + - Confirmation dialog before enabling NSFW mode + - Upload progress bars -- cgit v1.3