wip - workplace document list

This commit is contained in:
Frede Hundewadt 2022-08-02 08:40:22 +02:00
parent 8604803634
commit dda2965026
3 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,6 @@
@using Microsoft.AspNetCore.Authorization
@using Wonky.Client.Components
@attribute [Authorize(Roles = "Admin,Warehouse,Office")]
@page "/companies/{CompanyId}/workplaces/{WorkplaceId}/documents"
<h2>Dokumenter</h2>

View file

@ -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()
{
}
}

View file

@ -60,11 +60,6 @@
<span class="oi oi-people" aria-hidden="true"></span> Sælgere
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link ps-2" href="/admin/users/office">
<span class="oi oi-people" aria-hidden="true"></span> Admins
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link ps-2" href="/price-catalog">
<span class="oi oi-spreadsheet" aria-hidden="true"></span> Priskatalog