diff --git a/CutList.Web/Components/Pages/Jobs/Edit.razor b/CutList.Web/Components/Pages/Jobs/Edit.razor index fe33313..ae055c8 100644 --- a/CutList.Web/Components/Pages/Jobs/Edit.razor +++ b/CutList.Web/Components/Pages/Jobs/Edit.razor @@ -17,6 +17,19 @@ } +@if (!IsNew && job.IsLocked) +{ +
Loading...
@@ -286,6 +299,15 @@ else private bool IsNew => !Id.HasValue; + private async Task UnlockJob() + { + if (Id.HasValue) + { + await JobService.UnlockAsync(Id.Value); + job = (await JobService.GetByIdAsync(Id.Value))!; + } + } + protected override async Task OnInitializedAsync() { materials = await MaterialService.GetAllAsync(); @@ -322,55 +344,57 @@ else