From dda296502632f60b5804a93115c388dd7ee4dd77 Mon Sep 17 00:00:00 2001 From: Frede Hundewadt <22748698+fhdk@users.noreply.github.com> Date: Tue, 2 Aug 2022 08:40:22 +0200 Subject: [PATCH] wip - workplace document list --- .../Pages/WorkplaceDocumentListPage.razor | 6 ++++++ .../Pages/WorkplaceDocumentListPage.razor.cs | 19 +++++++++++++++++++ Wonky.Client/Shared/NavMenu.razor | 5 ----- 3 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 Wonky.Client/Pages/WorkplaceDocumentListPage.razor create mode 100644 Wonky.Client/Pages/WorkplaceDocumentListPage.razor.cs diff --git a/Wonky.Client/Pages/WorkplaceDocumentListPage.razor b/Wonky.Client/Pages/WorkplaceDocumentListPage.razor new file mode 100644 index 00000000..c9687bcd --- /dev/null +++ b/Wonky.Client/Pages/WorkplaceDocumentListPage.razor @@ -0,0 +1,6 @@ +@using Microsoft.AspNetCore.Authorization +@using Wonky.Client.Components +@attribute [Authorize(Roles = "Admin,Warehouse,Office")] +@page "/companies/{CompanyId}/workplaces/{WorkplaceId}/documents" + +

Dokumenter

\ No newline at end of file diff --git a/Wonky.Client/Pages/WorkplaceDocumentListPage.razor.cs b/Wonky.Client/Pages/WorkplaceDocumentListPage.razor.cs new file mode 100644 index 00000000..d6f77177 --- /dev/null +++ b/Wonky.Client/Pages/WorkplaceDocumentListPage.razor.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpInterceptors; +using Wonky.Client.HttpRepository; + +namespace Wonky.Client.Pages; + +public partial class WorkplaceDocumentListPage +{ + [Parameter] public string CompanyId { get; set; } = ""; + [Parameter] public string WorkplaceId { get; set; } = ""; + + [Inject] private HttpInterceptorService _interceptor { get; set; } + [Inject] private IWorkplaceHttpRepository _workplaceRepo { get; set; } + + protected override async Task OnParametersSetAsync() + { + + } +} \ No newline at end of file diff --git a/Wonky.Client/Shared/NavMenu.razor b/Wonky.Client/Shared/NavMenu.razor index ab19947f..066dcd6f 100644 --- a/Wonky.Client/Shared/NavMenu.razor +++ b/Wonky.Client/Shared/NavMenu.razor @@ -60,11 +60,6 @@ Sælgere -