Adds extended label to pdf-export
This commit is contained in:
parent
295c69e3fb
commit
f63838ff83
@ -128,7 +128,7 @@ export class MotionPdfCatalogService {
|
|||||||
|
|
||||||
if (categories && categories.length) {
|
if (categories && categories.length) {
|
||||||
const catTocBody = [];
|
const catTocBody = [];
|
||||||
for (const category of categories) {
|
for (const category of categories.sort((a, b) => a.weight - b.weight)) {
|
||||||
// push the name of the category
|
// push the name of the category
|
||||||
// make a table for correct alignment
|
// make a table for correct alignment
|
||||||
catTocBody.push({
|
catTocBody.push({
|
||||||
@ -136,7 +136,7 @@ export class MotionPdfCatalogService {
|
|||||||
body: [
|
body: [
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
text: category.prefix ? category.prefix + ' - ' + category.name : category.name,
|
text: category.prefixedNameWithParents,
|
||||||
style: 'tocCategoryTitle'
|
style: 'tocCategoryTitle'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -271,9 +271,7 @@ export class MotionPdfService {
|
|||||||
style: 'boldText'
|
style: 'boldText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: motion.category.prefix
|
text: motion.category.prefixedNameWithParents
|
||||||
? `${motion.category.prefix} - ${motion.category.name}`
|
|
||||||
: `${motion.category.name}`
|
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user