Merge branch 'search' into dev
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user