Ordne Akten und Vorgaenge nach fachlichem Datum oder eigener Reihenfolge und mache den Inhalt zur Arbeitsansicht.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
27925093e2
commit
52bda91aad
22 files changed
+2079
-258
No files matched your search
@@ -84,6 +84,20 @@ export async function fetchPaperless(elementId, context) {
|
||||
return response.blob();
|
||||
}
|
||||
|
||||
export async function fetchFile(elementId, context) {
|
||||
const params = new URLSearchParams();
|
||||
if (context?.kind && context?.id) {
|
||||
params.set("context_kind", context.kind);
|
||||
params.set("context_id", context.id);
|
||||
}
|
||||
const response = await fetch(`/api/v1/files/${elementId}/content?${params}`, {
|
||||
credentials: "include",
|
||||
headers: scopeHeaders(),
|
||||
});
|
||||
if (!response.ok) throw new Error("Die Datei ist nicht verfügbar.");
|
||||
return response.blob();
|
||||
}
|
||||
|
||||
export async function downloadFile(elementId, context, filename) {
|
||||
const params = new URLSearchParams();
|
||||
if (context?.kind && context?.id) {
|
||||
|
||||
Reference in new issue
Block a user