Restrict guest CSV comment export in UI and fix lint/typecheck cleanup in comment APIs

This commit is contained in:
Yusuf İpek
2026-02-24 15:03:42 +03:00
parent 449433a08a
commit 4083651025
4 changed files with 22 additions and 16 deletions
+2 -2
View File
@@ -3551,12 +3551,12 @@ export function VideoPageContent({ mode, videoId, projectId: propProjectId }: Vi
variant="ghost"
size="icon"
className="h-8 w-8"
disabled={!activeVersion || isExportingCsv || isExportingPdf}
disabled={!activeVersion || isGuest || isExportingCsv || isExportingPdf}
onClick={(e) => {
e.stopPropagation();
handleExportComments('csv');
}}
title="Download comments as CSV"
title={isGuest ? 'CSV export requires an authenticated account' : 'Download comments as CSV'}
>
{isExportingCsv ? <Loader2 className="h-4 w-4 animate-spin" /> : <Download className="h-4 w-4" />}
</Button>