mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-04 20:05:16 +02:00
feat(web): add download original action to editor header
This commit is contained in:
parent
637affecb8
commit
af192a8405
2 changed files with 86 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ import dynamic from "next/dynamic";
|
|||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { closeEditorPanelAtom, editorPanelAtom } from "@/atoms/editor/editor-panel.atom";
|
||||
import { DownloadOriginalButton } from "@/components/documents/download-original-button";
|
||||
import { VersionHistoryButton } from "@/components/documents/version-history";
|
||||
import { SourceCodeEditor } from "@/components/editor/source-code-editor";
|
||||
import {
|
||||
|
|
@ -584,6 +585,9 @@ export function EditorPanelContent({
|
|||
documentType={editorDoc.document_type}
|
||||
/>
|
||||
)}
|
||||
{!isLocalFileMode && !isMemoryMode && documentId && (
|
||||
<DownloadOriginalButton documentId={documentId} />
|
||||
)}
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
|
|
@ -668,6 +672,9 @@ export function EditorPanelContent({
|
|||
documentType={editorDoc.document_type}
|
||||
/>
|
||||
)}
|
||||
{!isLocalFileMode && !isMemoryMode && documentId && (
|
||||
<DownloadOriginalButton documentId={documentId} />
|
||||
)}
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue