wip - workplace document list
This commit is contained in:
parent
8604803634
commit
dda2965026
3 changed files with 25 additions and 5 deletions
6
Wonky.Client/Pages/WorkplaceDocumentListPage.razor
Normal file
6
Wonky.Client/Pages/WorkplaceDocumentListPage.razor
Normal 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>
|
19
Wonky.Client/Pages/WorkplaceDocumentListPage.razor.cs
Normal file
19
Wonky.Client/Pages/WorkplaceDocumentListPage.razor.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue