Fix authors and categories not getting set properly in the viewer.

This commit is contained in:
aditya.chandel
2025-01-16 20:50:00 -07:00
parent 2c9b943538
commit 6ee5236920
8 changed files with 47 additions and 53 deletions
@@ -37,27 +37,27 @@
</div>
<div class="flex flex-wrap gap-2">
<p-tag *ngFor="let category of metadata.categories" value="{{category}}"></p-tag>
<p-tag *ngFor="let category of metadata.categories" [value]="category.name"></p-tag>
</div>
</div>
</div>
</div>
<!--<p-divider></p-divider>-->
<p-divider></p-divider>
<div *ngIf="metadata$ | async as metadata" class="book-description space-y-4 overflow-y-auto flex-1">
<!--<p class="pt-2 px-2" [innerHTML]="bookMetadata.description || 'No description available.'"></p>-->
<div class="pt-6">
<p class="pt-2 px-2" [innerHTML]="metadata.description || 'No description available.'"></p>
<!--<div class="pt-6">
<p-editor [(ngModel)]="metadata.description" [style]="{ height: '350px' }" [readonly]="true">
<ng-template #header>
</ng-template>
</p-editor>
</div>
</div>-->
</div>
<div class="flex flex-col gap-x-4 mt-auto">
<!--<p-divider></p-divider>-->
<p-divider></p-divider>
<div class="flex gap-x-4 justify-end">
<p-button label="Close" icon="pi pi-times" severity="secondary" (onClick)="closeDialog()"></p-button>
</div>