Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: progress bar for non pdf docs

Marc Seitz256f65d4512b
diff --git a/.gitignore b/.gitignore
index bc7e3b23..ee0b1171 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,4 +57,7 @@ lib/emails/marketing
.vscode
# trigger.dev
-.trigger
\ No newline at end of file
+.trigger
+
+# changelog
+changelog
\ No newline at end of file
diff --git a/components/links/links-table.tsx b/components/links/links-table.tsx
index f16a47b5..5e6f40ed 100644
--- a/components/links/links-table.tsx
+++ b/components/links/links-table.tsx
@@ -319,25 +319,26 @@ export default function LinksTable({
)}
>
{/* Progress bar */}
- {primaryVersion && !primaryVersion.hasPages && (
- <>
- {primaryVersion.type === "pdf" &&
- teamInfo?.currentTeam?.id !==
+ {primaryVersion &&
+ !primaryVersion.hasPages &&
+ primaryVersion.type === "pdf" && (
+ <>
+ {teamInfo?.currentTeam?.id !==
"cluqtfmcr0001zkza4xcgqatw" ? (
- <ProcessStatusBar
- documentVersionId={primaryVersion.id}
- className="absolute bottom-0 left-0 right-0 top-0 z-20 flex h-full items-center gap-x-8"
- />
- ) : (
- <FileProcessStatusBar
- documentVersionId={primaryVersion.id}
- className="absolute bottom-0 left-0 right-0 top-0 z-20 flex h-full items-center gap-x-8"
- // @ts-ignore: mutateDocument is not present on datarooms but on document pages
- mutateDocument={mutateDocument}
- />
- )}
- </>
- )}
+ <ProcessStatusBar
+ documentVersionId={primaryVersion.id}
+ className="absolute bottom-0 left-0 right-0 top-0 z-20 flex h-full items-center gap-x-8"
+ />
+ ) : (
+ <FileProcessStatusBar
+ documentVersionId={primaryVersion.id}
+ className="absolute bottom-0 left-0 right-0 top-0 z-20 flex h-full items-center gap-x-8"
+ // @ts-ignore: mutateDocument is not present on datarooms but on document pages
+ mutateDocument={mutateDocument}
+ />
+ )}
+ </>
+ )}
<div className="flex w-full whitespace-nowrap text-sm group-hover/cell:opacity-0">
{link.domainId