improved note titles for documents
All checks were successful
Build Docker Image / Docker-Build (push) Successful in 2m26s
Build Docker Image / Clean-Registry (push) Successful in -2s

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-28 15:52:27 +01:00
parent 285343218b
commit 1db28b5bc0

View File

@@ -53,7 +53,6 @@
} }
async function getTitle(key,module,entity_id){ async function getTitle(key,module,entity_id){
get(api(module+'/'+entity_id)).then(res => setTitle(res,key,module)) get(api(module+'/'+entity_id)).then(res => setTitle(res,key,module))
} }
@@ -62,6 +61,9 @@
const json = await resp.json(); const json = await resp.json();
if (json.name) notes[key].title = t(module)+": "+json.name; if (json.name) notes[key].title = t(module)+": "+json.name;
if (json.title) notes[key].title = t(module)+": "+json.title; if (json.title) notes[key].title = t(module)+": "+json.title;
if (module == 'document'){
notes[key].title = t(json.type)+" "+json.number;
}
} }
} }