Skip to content

Commit

Permalink
feat: Fix documents not being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
astubenbord committed Jan 18, 2024
1 parent 2f72ef4 commit 2a10b5c
Show file tree
Hide file tree
Showing 9 changed files with 415 additions and 311 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Dokumente können jetzt wieder in der App betrachtet werden!
- Beheben eines Problems mit mTLS
- Kleinere Fehlerbehebungen
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Documents (PDFs) can again be viewed in-app!
- Fix issue with mTLS
- Some minor bug fixes
3 changes: 2 additions & 1 deletion lib/features/document_edit/view/document_edit_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ class _DocumentEditPageState extends State<DocumentEditPage>
child: DocumentView(
showAppBar: false,
showControls: false,
documentBytes: context
title: state.document.title,
bytes: context
.read<PaperlessDocumentsApi>()
.downloadDocument(state.document.id),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/features/document_scan/view/scanner_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class _ScannerPageState extends State<ScannerPage>
? () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => DocumentView(
documentBytes: _assembleFileBytes(
bytes: _assembleFileBytes(
state.scans,
forcePdf: true,
).then((file) => file.bytes),
Expand Down
Loading

0 comments on commit 2a10b5c

Please sign in to comment.