content disposition
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
ChevronsRightIcon,
|
||||
AnalyzeIcon,
|
||||
WindowMaximizeIcon,
|
||||
TextScanIcon,
|
||||
} from '../ui/icons';
|
||||
import PanelHeader from '../ui/PanelHeader';
|
||||
import { formatFileSize } from '../utils/format';
|
||||
@@ -169,7 +168,7 @@ const DetailPanel = ({
|
||||
[selectedDocuments],
|
||||
);
|
||||
|
||||
const { downloadHref: singleDownloadHref, hasOcr: singleHasOcr, openOcr } = useMemo(
|
||||
const { downloadHref: singleDownloadHref } = useMemo(
|
||||
() =>
|
||||
createDocumentActionState({
|
||||
document: singleDoc,
|
||||
@@ -851,7 +850,6 @@ const DetailPanel = ({
|
||||
};
|
||||
|
||||
const isBulkSelection = selectedCount > 1;
|
||||
const showOcrAction = Boolean(singleDoc && singleHasOcr);
|
||||
|
||||
const headerLeading = [
|
||||
(
|
||||
@@ -924,24 +922,6 @@ const DetailPanel = ({
|
||||
);
|
||||
}
|
||||
|
||||
if (showOcrAction) {
|
||||
headerActions.push(
|
||||
<button
|
||||
key="ocr"
|
||||
type="button"
|
||||
className="icon-button"
|
||||
onClick={(event) => {
|
||||
event.stopPropagation();
|
||||
openOcr().catch(() => {});
|
||||
}}
|
||||
aria-label="View OCR text"
|
||||
title="View OCR text"
|
||||
>
|
||||
<TextScanIcon />
|
||||
</button>,
|
||||
);
|
||||
}
|
||||
|
||||
if (singleDoc) {
|
||||
headerActions.push(
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user