From 21d50e7c20cbd1233faaf9ff4456450c45ac7e1d Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 5 Feb 2026 00:19:01 -0500 Subject: [PATCH] fix: Prevent shape change after material creation Disable Shape dropdown on existing materials since changing shape would require completely different dimension properties. Co-Authored-By: Claude Opus 4.5 --- CutList.Web/Components/Pages/Materials/Edit.razor | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CutList.Web/Components/Pages/Materials/Edit.razor b/CutList.Web/Components/Pages/Materials/Edit.razor index 121a9bf..6a37be0 100644 --- a/CutList.Web/Components/Pages/Materials/Edit.razor +++ b/CutList.Web/Components/Pages/Materials/Edit.razor @@ -28,13 +28,17 @@ else
- + @foreach (var shape in Enum.GetValues()) { } + @if (!IsNew) + { +
Shape cannot be changed after creation.
+ }