All files / projects/organization-management/src/app/components/cost-center-widget cost-center-widget.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 371x                                                                        
<ish-info-box heading="account.costcenter.widget.title" class="infobox-wrapper" cssClass="infobox-widget">
  <div class="loading-container">
    <div *ngIf="(loading$ | async) !== true; else loading">
      <ng-container *ngIf="costCenters$ | async as costCenters; else emptyList">
        <ng-container *ngIf="costCenters.length; else emptyList">
          <ng-container *ngFor="let cc of costCenters$ | async">
            <div class="row mt-0 mb-3">
              <div class="col-12 col-md-5">
                <a [routerLink]="['/account/organization/cost-centers/', cc.id]">
                  {{ cc.costCenterId }} {{ cc.name }}
                </a>
              </div>
              <div class="col-12 col-md-7">
                <ish-cost-center-budget [costCenter]="cc" progressBarClass="background-inverse" />
              </div>
            </div>
          </ng-container>
        </ng-container>
      </ng-container>
      <ng-template #emptyList>
        <div class="pb-3">{{ 'account.costcenter.widget.noitems' | translate }}</div>
      </ng-template>
    </div>
    <div class="row">
      <div class="col-12">
        <a routerLink="/account/organization/cost-centers">
          {{ 'account.costcenter.widget.manage.link' | translate }}
        </a>
      </div>
    </div>
 
    <ng-template #loading>
      <ish-loading />
    </ng-template>
  </div>
</ish-info-box>