diff --git a/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor b/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor index 9480631..3b73c89 100644 --- a/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor +++ b/CulinaryCommandApp/Components/Pages/Assignments/AdminAssignTask.razor @@ -4,16 +4,13 @@ @using CulinaryCommand.Services @using CulinaryCommand.Data.Enums; @using CulinaryCommand.Services.UserContextSpace -@using CulinaryCommandApp.Recipe.Services; -@using CulinaryCommandApp.Recipe.Services.Interfaces; -@using CulinaryCommandApp.Recipe.Entities; @inject IUserContextService UserCtx @inject NavigationManager Nav @inject ILocationService LocationService @inject IUserService UserService @inject LocationState LocationState @inject ITaskAssignmentService TaskService -@inject IRecipeService RecipeService +@inject RecipeService RecipeService @implements IDisposable @rendermode InteractiveServer @@ -349,8 +346,11 @@ else try { - recipes = await RecipeService.GetAllByLocationIdAsync(selectedLocationId.Value); - recipes = recipes.OrderBy(r => r.Title).ToList(); + var all = await RecipeService.GetAllAsync(); + recipes = all + .Where(r => r.LocationId == selectedLocationId.Value) + .OrderBy(r => r.Title) + .ToList(); } catch { diff --git a/CulinaryCommandApp/Components/Pages/EmployeeView.razor b/CulinaryCommandApp/Components/Pages/EmployeeView.razor deleted file mode 100644 index 82f700d..0000000 --- a/CulinaryCommandApp/Components/Pages/EmployeeView.razor +++ /dev/null @@ -1,64 +0,0 @@ -@rendermode InteractiveServer - -@using CulinaryCommand.Components.Custom -@using CulinaryCommand.Services.UserContextSpace -@using CulinaryCommand.Services - -@inject IUserContextService UserCtx -@inject LocationState LocationState - -
No location assigned. Please contact your manager.
- } - else - { -Welcome to @LocationState.CurrentLocation.Name.
- -Loading...
+} +else +{ +Loading...
+} +else +{ +| Title | +Category | +Type | +Yield | ++ |
|---|---|---|---|---|
| @r.Title | +@r.Category | +@r.RecipeType | +@FormatYield(r) | ++ + @if (priv) + { + + + } + | +
Loading...
+ } + else + { +No ingredients added.
+ } + else + { +No steps added.
+ } + else + { +| Name | -Abbreviation | -- |
|---|---|---|
| @unit.Name | -@unit.Abbreviation | -- - | -
@(LocationState.CurrentLocation is not null ? $"{LocationState.CurrentLocation.Name} β ingredient catalog" : "Manage your ingredient catalog")
+Manage your ingredient catalog