From 04dbbb6b2753a3d0e7ea02fe402ed0ac5d57056d Mon Sep 17 00:00:00 2001 From: rxtur Date: Sun, 4 Apr 2021 00:10:44 -0500 Subject: [PATCH] Admin Panel Layout #266 - Categories --- .../Pages/Blog/CategoriesView.razor | 273 +++++++----------- src/Blogifier.Core/Blogifier.Core.csproj | 2 +- .../Providers/CategoryProvider.cs | 115 +++++--- src/Blogifier.Shared/Models/CategoryItem.cs | 23 +- .../Controllers/CategoryController.cs | 39 ++- 5 files changed, 228 insertions(+), 224 deletions(-) diff --git a/src/Blogifier.Admin/Pages/Blog/CategoriesView.razor b/src/Blogifier.Admin/Pages/Blog/CategoriesView.razor index 166a11186..8c978d023 100644 --- a/src/Blogifier.Admin/Pages/Blog/CategoriesView.razor +++ b/src/Blogifier.Admin/Pages/Blog/CategoriesView.razor @@ -6,8 +6,6 @@ @inject IJSRuntime _jsruntime @inject IToaster _toaster @inject NavigationManager _navigation -@inject BlogStateProvider _stateprovider -@implements IDisposable @@ -19,9 +17,9 @@ - @_localizer["New Category"] + @*@_localizer["New Category"]*@ - @if (Posts != null && Posts.Count > 0) + @if (Categories != null && Categories.Count > 0) { - @if (Posts != null && Posts.Count > 0) + @if (Categories != null && Categories.Count > 0) {