fix document-section

master
Boris Voropaev 2023-09-01 14:55:16 +03:00
parent 4bd7e86bf1
commit 62b8306f0f
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<!-- <span style="white-space: pre-wrap;">
{{section.groups.data[0].fields.data[0].value.data[0].links.download|json}}
{{section.groups.data[0].fields.data|json}}
</span> -->
<a [textContent]="title" class="title" [href]="download"></a>
<a [textContent]="name" class="title" [href]="download"></a>
<div [textContent]="description" class="description"></div>

View File

@ -20,10 +20,14 @@ export class DocumentSectionComponent {
return this.section.groups.data[0].fields.data[1].title;
}
get description(){
get name(){
return this.section.groups.data[0].fields.data[1].value.data[0];
}
get description(){
return this.section.groups.data[0].fields.data[2].value.data[0];
}
get download(){
return this.section.groups.data[0].fields.data[0].value.data[0].links.download;
}