Error dialog component on dataset wizard (update)

* On single error case, show it indepentently (not as list item)
This commit is contained in:
Kristian Ntavidi 2021-07-21 12:25:13 +03:00
parent a212f4e5a1
commit 008b6321ea
1 changed files with 8 additions and 3 deletions

View File

@ -5,9 +5,14 @@
</div>
<div class="row content">
<div class="col p-0">
<ul class="error-list">
<li *ngFor="let error of errorMessages">{{error}}</li>
</ul>
<ng-container *ngIf="errorMessages">
<ul class="error-list" *ngIf="errorMessages.length > 1 else singleError">
<li *ngFor="let error of errorMessages">{{error}}</li>
</ul>
</ng-container>
<ng-template #singleError>
<span>{{errorMessages[0]}}</span>
</ng-template>
</div>
</div>
<div class="row">