@@ -29,10 +30,16 @@ else
| @item.NumType |
@($"{item.TotCost:C2}") |
@*
-
- | *@
+
+ *@
+
+ @if (item.OrderStatus < (int)Core.Enum.OrderStatus.Sent)
+ {
+
+ }
+ |
}
diff --git a/WebDoorCreator.UI/Components/Order/OrderList.razor.cs b/WebDoorCreator.UI/Components/Order/OrderList.razor.cs
index 987afec..b96c87a 100644
--- a/WebDoorCreator.UI/Components/Order/OrderList.razor.cs
+++ b/WebDoorCreator.UI/Components/Order/OrderList.razor.cs
@@ -1,7 +1,9 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Authorization;
+using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Identity;
using Microsoft.JSInterop;
+using NLog.LayoutRenderers;
using WebDoorCreator.Data.DbModels;
using WebDoorCreator.UI.Data;
@@ -117,6 +119,18 @@ namespace WebDoorCreator.UI.Components.Order
await E_currOrderStatus.InvokeAsync(currOrd);
}
+ protected async Task deleteRecord(OrderStatusViewModel currRec)
+ {
+
+ if (!await JSRuntime.InvokeAsync