Skip to content

Commit

Permalink
UI adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Jan 8, 2024
1 parent 500a36f commit e04a21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/commander/node/document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function str_id(node_id: string): string {
const Document = forwardRef<HTMLDivElement, NodeArgsType>(
(props, ref) => {

const [ status, setStatus ] = useState<OcrStatusEnum>(props.node?.document?.ocr_status || "UNKNOWN");
const [ status, setStatus ] = useState<OcrStatusEnum>(props.node?.ocr_status || "UNKNOWN");
const protected_thumbnail = useProtectedJpg(`/api/thumbnails/${props.node.id}`);
let thumbnail_component: JSX.Element | null;

Expand Down
8 changes: 3 additions & 5 deletions ui/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ export type TargetFolder = {

export type BreadcrumbType = Array<BreadcrumbItemType>;

export type DocumentNodeType = {
ocr_status: OcrStatusEnum;
thumbnail_url: string | null;
}

export type NType = {
/* Short version of the Node Type */
Expand All @@ -75,7 +71,8 @@ export type NodeType = NType & {
title: string;
user_id: string;
update_at: string;
document: DocumentNodeType | null;
ocr_status: OcrStatusEnum;
ocr: boolean;
thumbnail_url: string | null;
}

Expand All @@ -84,6 +81,7 @@ export type FolderType = NodeType & {
breadcrumb: BreadcrumbType;
}


export type PageType = {
id: string;
document_version_id: string;
Expand Down

0 comments on commit e04a21a

Please sign in to comment.