Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: enable advanced mode on pro for individual docs
Marc Seitzcaf074198680
diff --git a/components/documents/document-header.tsx b/components/documents/document-header.tsxindex c78ec6e5..7be7d6ad 100644--- a/components/documents/document-header.tsx+++ b/components/documents/document-header.tsx@@ -744,7 +744,7 @@ export default function DocumentHeader({{prismaDocument.type === "sheet" &&!prismaDocument.advancedExcelEnabled &&supportsAdvancedExcelMode(primaryVersion.contentType) &&- (isBusiness || isDatarooms || isTrial) && (+ (isPro || isBusiness || isDatarooms || isTrial) && (<DropdownMenuItemonClick={() => enableAdvancedExcel(prismaDocument)}>@@ -931,7 +931,8 @@ export default function DocumentHeader({{prismaDocument.type === "sheet" &&supportsAdvancedExcelMode(primaryVersion.contentType) &&- (isFree || isPro) && !isTrial && (+ isFree &&+ !isTrial && (<AlertBannerid="advanced-excel-alert"variant="default"@@ -942,12 +943,12 @@ export default function DocumentHeader({<spanclassName="hover:text-primary/ 80 cursor-pointer underline underline-offset-4"onClick={() =>- handleUpgradeClick(PlanEnum.Business, "advanced-excel-mode")+ handleUpgradeClick(PlanEnum.Pro, "advanced-excel-mode")}>upgrading</span>{" "}- to Business plan to preserve the file formatting. This uses the+ to Pro plan to preserve the file formatting. This uses theMicrosoft Office viewer.</>}@@ -958,7 +959,7 @@ export default function DocumentHeader({{prismaDocument.type === "sheet" &&!prismaDocument.advancedExcelEnabled &&supportsAdvancedExcelMode(primaryVersion.contentType) &&- (isBusiness || isDatarooms || isTrial) && (+ (isPro || isBusiness || isDatarooms || isTrial) && (<AlertBannerid="enable-advanced-excel-alert"variant="default"