mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 08:03:13 +00:00
Remove Vendor tab from Activity section
- Vendor communication now lives in the dispatch detail modal - Activity tabs: Customer, Internal, Audit Log - Comment input only shows on Internal tab
This commit is contained in:
parent
2a23febcec
commit
27fb70724b
1 changed files with 1 additions and 4 deletions
|
|
@ -675,18 +675,16 @@ export default function WorkOrderViewPage() {
|
|||
|
||||
const allComments = wo.comments || [];
|
||||
const customerComments = allComments.filter((c) => c.commentType === "customer");
|
||||
const vendorComments = allComments.filter((c) => c.commentType === "vendor");
|
||||
const internalComments = allComments.filter((c) => c.commentType === "internal");
|
||||
const auditLog = wo.auditLog || [];
|
||||
|
||||
const tabs = [
|
||||
{ key: "customer", label: "Customer", count: customerComments.length },
|
||||
{ key: "vendor", label: "Vendor", count: vendorComments.length },
|
||||
{ key: "internal", label: "Internal", count: internalComments.length },
|
||||
{ key: "audit", label: "Audit Log", count: auditLog.length },
|
||||
];
|
||||
|
||||
const showInput = activeTab === "internal" || activeTab === "vendor";
|
||||
const showInput = activeTab === "internal";
|
||||
|
||||
return (
|
||||
<div className="woViewPage">
|
||||
|
|
@ -864,7 +862,6 @@ export default function WorkOrderViewPage() {
|
|||
</div>
|
||||
<div className="woTabContainer">
|
||||
{activeTab === "customer" && <CommentTimeline comments={customerComments} />}
|
||||
{activeTab === "vendor" && <CommentTimeline comments={vendorComments} />}
|
||||
{activeTab === "internal" && <CommentTimeline comments={internalComments} />}
|
||||
{activeTab === "audit" && <AuditTimeline entries={auditLog} />}
|
||||
{showInput && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue