Disable Submit for Approval button when admin is editing design

Added isAdminEditing prop to DesignCanvas. When true, the Submit for Approval
button is disabled (grayed out) since the admin should use the Send to Customer
for Review button instead. This is a safer approach than hiding the button.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-18 18:27:00 +01:00
co-authored by Claude Haiku 4.5
parent 04f45c6e6b
commit a5f09e9f75
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ export default function EditDesignPage({ params }: { params: { id: string } }) {
</div>
{/* Full Design Canvas */}
<DesignCanvas product={design.product} />
<DesignCanvas product={design.product} isAdminEditing={true} />
</div>
</div>
);