summaryrefslogtreecommitdiff
path: root/components/bidding/manage/bidding-companies-editor.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/bidding/manage/bidding-companies-editor.tsx')
-rw-r--r--components/bidding/manage/bidding-companies-editor.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/bidding/manage/bidding-companies-editor.tsx b/components/bidding/manage/bidding-companies-editor.tsx
index f6b3a3f0..6634f528 100644
--- a/components/bidding/manage/bidding-companies-editor.tsx
+++ b/components/bidding/manage/bidding-companies-editor.tsx
@@ -494,7 +494,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
</p>
</div>
{!readonly && (
- <Button onClick={() => setAddVendorDialogOpen(true)} className="flex items-center gap-2">
+ <Button onClick={() => setAddVendorDialogOpen(true)} className="flex items-center gap-2" disabled={readonly}>
<Plus className="h-4 w-4" />
업체 추가
</Button>
@@ -532,6 +532,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
<Checkbox
checked={selectedVendor?.id === vendor.id}
onCheckedChange={() => handleVendorSelect(vendor)}
+ disabled={readonly}
/>
</TableCell>
<TableCell className="font-medium">{vendor.vendorName}</TableCell>
@@ -565,6 +566,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
onCheckedChange={(checked) =>
handleTogglePriceAdjustmentQuestion(vendor.id, checked as boolean)
}
+ disabled={readonly}
/>
<span className="text-sm text-muted-foreground">
{vendor.isPriceAdjustmentApplicableQuestion ? '예' : '아니오'}
@@ -577,6 +579,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
size="sm"
onClick={() => handleRemoveVendor(vendor.id)}
className="text-red-600 hover:text-red-800"
+ disabled={readonly}
>
<Trash2 className="h-4 w-4" />
</Button>
@@ -607,6 +610,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
variant="outline"
onClick={handleOpenAddContactFromVendor}
className="flex items-center gap-2"
+ disabled={readonly}
>
<User className="h-4 w-4" />
업체 담당자 추가
@@ -614,6 +618,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
<Button
onClick={() => setAddContactDialogOpen(true)}
className="flex items-center gap-2"
+ disabled={readonly}
>
<Plus className="h-4 w-4" />
담당자 수기 입력
@@ -652,6 +657,7 @@ export function BiddingCompaniesEditor({ biddingId, readonly = false }: BiddingC
size="sm"
onClick={() => handleDeleteContact(biddingCompanyContact.id)}
className="text-red-600 hover:text-red-800"
+ disabled={readonly}
>
<Trash2 className="h-4 w-4" />
</Button>