added loading component for persons bio
This commit is contained in:
@@ -48,13 +48,16 @@
|
||||
</div>
|
||||
<aside class="sidebar">
|
||||
<div class="bio-card">
|
||||
<h3>Biografie</h3>
|
||||
@if (isBioLoading()) {
|
||||
<mat-progress-spinner mode="indeterminate"></mat-progress-spinner>
|
||||
} @else if (personBio() != null) {
|
||||
@if (isBioLoading()){
|
||||
<app-loading text="Biografie wird geladen" icon="description" size="200" diameter="200" ></app-loading>
|
||||
}
|
||||
@else if (personBio() != null) {
|
||||
<h3>Biografie</h3>
|
||||
<p>{{ personBio() }}</p>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
</aside>
|
||||
<app-person-interesting
|
||||
[topics]="primaryTopicCounts()"
|
||||
|
||||
@@ -20,6 +20,7 @@ import { of, switchMap, finalize, map, catchError } from 'rxjs';
|
||||
|
||||
import { PersonInterestingComponent } from '../person-interesting/person-interesting.component';
|
||||
import { PersonsService, WorksService } from '../../api';
|
||||
import { LoadingComponent } from "../../shared/ui/loading/loading.component";
|
||||
|
||||
const PERSON_INCLUDE_TAGS =
|
||||
'topics_full,topic_share,summary_stats,ids,last_known_institutions,' +
|
||||
@@ -34,7 +35,8 @@ const PERSON_INCLUDE_TAGS =
|
||||
RouterOutlet,
|
||||
RouterModule,
|
||||
MatProgressSpinner,
|
||||
],
|
||||
LoadingComponent
|
||||
],
|
||||
templateUrl: './person.component.html',
|
||||
styleUrl: './person.component.scss',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user