Schließe die Connector-Kapselung ab, damit Paperless, IMAP und weitere Quellen über dieselbe Anbindung laufen.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
75a3949f7c
commit
d6b70d8f92
75 files changed
+9477
-414
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { api } from "../api.js";
|
||||
import { moduleFor } from "../sources/registry-core.js";
|
||||
import { buildChapterSections, sectionCounts } from "./chapters.js";
|
||||
|
||||
function formatDate(value) {
|
||||
@@ -65,7 +66,7 @@ export function receiptRoleLabel(role, fallback = "") {
|
||||
}
|
||||
|
||||
function receiptCaption(proof) {
|
||||
if (proof.role === "email" && proof.source !== "imap") return "Beleg";
|
||||
if (proof.role === "email" && moduleFor(proof.source)?.representation !== "email") return "Beleg";
|
||||
return receiptRoleLabel(proof.role, proof.role_label);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user