Skip to content

Commit f1d1f5b

Browse files
committed
[DSC-1336] Show loading status during SSR
1 parent 4df0008 commit f1d1f5b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/collection-page/collection-page.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h3 class="sr-only">{{'collection.page.browse.recent.head' | translate}}</h3>
7474
</div>
7575
<ds-error *ngIf="collectionRD?.hasFailed"
7676
message="{{'error.collection' | translate}}"></ds-error>
77-
<ds-themed-loading *ngIf="collectionRD?.isLoading"
77+
<ds-themed-loading *ngIf="!collectionRD || collectionRD?.isLoading"
7878
message="{{'loading.collection' | translate}}"></ds-themed-loading>
7979
</div>
8080
</div>

src/app/shared/search/search.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ export class SearchComponent implements OnInit, OnDestroy {
381381
*/
382382
ngOnInit(): void {
383383
if (!this.renderOnServerSide && isPlatformServer(this.platformId)) {
384+
this.initialized$.next(true);
384385
return;
385386
}
386387

0 commit comments

Comments
 (0)