diff --git a/app/portal/projects/[id]/portal-project-client.tsx b/app/portal/projects/[id]/portal-project-client.tsx index 44ec8be..28c72ee 100644 --- a/app/portal/projects/[id]/portal-project-client.tsx +++ b/app/portal/projects/[id]/portal-project-client.tsx @@ -32,6 +32,7 @@ export function PortalProjectClient({ project, sections, tasks, revisions, clien }; const pendingRevisions = revisions.filter((r: any) => r.status === 'pending' || r.status === 'in_progress').length; + const hasRevisionQuota = project.revision_quota === null || project.revision_quota > 0; return (
@@ -44,38 +45,44 @@ export function PortalProjectClient({ project, sections, tasks, revisions, clien
{project.status} - - - - - -
- - Yeni Revizyon Talebi - -
- {pendingRevisions > 0 && ( -
- Şu anda sonuçlanmamış {pendingRevisions} adet revizyon talebiniz var. Yeni bir tane eklemek istediğinize emin misiniz? + {hasRevisionQuota ? ( + + + + + + + + Yeni Revizyon Talebi + +
+ {pendingRevisions > 0 && ( +
+ Şu anda sonuçlanmamış {pendingRevisions} adet revizyon talebiniz var. Yeni bir tane eklemek istediğinize emin misiniz? +
+ )} +
+ +