Skip to content

Commit

Permalink
[Gepardec/mega#749] adapt loading for bills
Browse files Browse the repository at this point in the history
  • Loading branch information
gattrCh committed Jun 3, 2024
1 parent 0d9c63c commit 6dc5c49
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
</mat-card-title>
</mat-card-header>

<mat-card-content [class.no-warnings]="!billInfo?.hasAttachmentWarnings && billInfo?.sumBills === 0" >
<mat-card-content [class.no-warnings]="!billInfo?.hasAttachmentWarnings && billInfo?.sumBills === 0 && !billInfo.employeeHasCreditCard" >
<ng-container *ngIf="!billInfo">
<ngx-skeleton-loader [theme]="{ height: '46px' }"
<ngx-skeleton-loader [theme]="{ height: '56px' }"
appearance="line"></ngx-skeleton-loader>
<ngx-skeleton-loader [theme]="{ height: '46px' }"
<ngx-skeleton-loader [theme]="{ height: '56px' }"
appearance="line"></ngx-skeleton-loader>
</ng-container>

Expand Down Expand Up @@ -55,7 +55,8 @@
<ng-container *ngIf="!billInfo && billInfo?.employeeHasCreditCard">
<ngx-skeleton-loader [theme]="{ height: '46px' }"></ngx-skeleton-loader>
</ng-container>
<div *ngIf=" billInfo && billInfo?.employeeHasCreditCard" class="credit-card-warning">

<div *ngIf="billInfo && billInfo?.employeeHasCreditCard" class="credit-card-warning">
<app-credit-card-warning></app-credit-card-warning>
</div>
</mat-card-content>
Expand Down

0 comments on commit 6dc5c49

Please sign in to comment.