Skip to content

Commit

Permalink
fix: show loading indicator for wlo-topics-column-browser, if no topi…
Browse files Browse the repository at this point in the history
…c collection ID is yet loaded, to avoid error message being shown on page loading
  • Loading branch information
tkubica-edu committed Oct 29, 2024
1 parent 09ec7f1 commit 78c30e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/wlo-search/template/template.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
<ng-container *ngIf="selectedMenuItem === menuItems.topicTree">
<h2 style="font-size: 18px">Themenbaum von {{ topic() }}</h2>
<wlo-topics-column-browser
*ngIf="topicCollectionID(); else loadingIndicator"
[contextNodeId]="topicCollectionID()"
[customUrl]="retrieveCustomUrl"
[defaultNodeId]="defaultTopicsColumnBrowserNodeId"
Expand All @@ -119,13 +120,13 @@ <h2 style="font-size: 18px">Inhalte von {{ topic() }}</h2>
>
></wlo-statistics-summary
>
<ng-template #loadingIndicator>
<es-spinner></es-spinner>
</ng-template>
</ng-container>
<ng-container *ngIf="selectedMenuItem === menuItems.feedback">
Inhalt von {{ menuItems.feedback }} folgt.
</ng-container>
<ng-template #loadingIndicator>
<es-spinner></es-spinner>
</ng-template>
</ng-container>
</wlo-side-menu-wrapper>

Expand Down

0 comments on commit 78c30e9

Please sign in to comment.