From 64b893b778fd85d839c68ff997628b0409c0f1b1 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Sat, 11 Dec 2021 13:56:35 -0800 Subject: [PATCH] Add deleting bookmark groups --- Readme.md | 2 +- Start/Client/Components/BookmarkGroup.razor | 15 ++++++ Start/Client/Components/DeleteGroup.razor | 46 +++++++++++++++++ Start/Client/Pages/Index.razor | 1 + Start/Client/Sass/app.scss | 3 ++ Start/Client/Start.Client.csproj | 2 + .../DeleteContainer/DeleteContainerEffects.cs | 6 +-- .../DeleteGroup/DeleteGroupActions.cs | 33 +++++++++++++ .../DeleteGroup/DeleteGroupEffects.cs | 49 +++++++++++++++++++ .../DeleteGroup/DeleteGroupFeature.cs | 11 +++++ .../DeleteGroup/DeleteGroupReducers.cs | 49 +++++++++++++++++++ .../Features/DeleteGroup/DeleteGroupState.cs | 24 +++++++++ 12 files changed, 235 insertions(+), 6 deletions(-) create mode 100644 Start/Client/Components/DeleteGroup.razor create mode 100644 Start/Client/Store/Features/DeleteGroup/DeleteGroupActions.cs create mode 100644 Start/Client/Store/Features/DeleteGroup/DeleteGroupEffects.cs create mode 100644 Start/Client/Store/Features/DeleteGroup/DeleteGroupFeature.cs create mode 100644 Start/Client/Store/Features/DeleteGroup/DeleteGroupReducers.cs create mode 100644 Start/Client/Store/Features/DeleteGroup/DeleteGroupState.cs diff --git a/Readme.md b/Readme.md index 8eeb2a7..e3d3831 100644 --- a/Readme.md +++ b/Readme.md @@ -18,7 +18,7 @@ This is a rewrite of my [New Tab Page project](https://github.com/NeilBrommer/Ne - [x] Bookmarks - [ ] Manage bookmark containers - [x] Create - - [ ] Delete + - [x] Delete - [ ] Edit - [ ] Manage bookmark groups - [x] Create diff --git a/Start/Client/Components/BookmarkGroup.razor b/Start/Client/Components/BookmarkGroup.razor index eb4613a..e50c064 100644 --- a/Start/Client/Components/BookmarkGroup.razor +++ b/Start/Client/Components/BookmarkGroup.razor @@ -1,6 +1,7 @@ @using System.Drawing @using Fluxor @using Start.Client.Store.State +@using Start.Client.Store.Features.DeleteGroup @inherits Fluxor.Blazor.Web.Components.FluxorComponent @@ -12,6 +13,14 @@

@this.Group.Title

+ + @if (this.state.Value.EditMode) + { + + }