Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions components/view/dataroom/nav-dataroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,8 @@ export default function DataroomNav({
{
loading: "Downloading dataroom...",
success: async (response) => {
const blob = await response.blob();
const url = window.URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
link.setAttribute("download", "files.zip");
document.body.appendChild(link);
link.click();
link.remove();
const { downloadUrl } = await response.json();
window.open(downloadUrl, "_blank");
return "Dataroom downloaded successfully.";
},
error: (error) => {
Expand Down
1 change: 1 addition & 0 deletions components/view/viewer/advanced-excel-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default function AdvancedExcelViewer({
setDocumentData={setDocumentData}
type="sheet"
isPreview={isPreview}
allowDownload={allowDownload}
/>
<div
style={{ height: "calc(100dvh - 64px)" }}
Expand Down
Loading