cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/features/applications/application-wall/application-wall.component.html

Summary

Maintainability
Test Coverage
<app-page-header [endpointIds$]="cfIds$">
  <h1>Applications</h1>
  <div *ngIf="haveConnectedCf$ | async" class="page-header-right">
    <ng-container *appCfUserPermission="canCreateApplication">
      <button id="appwall-create-application" mat-icon-button [routerLink]="'/applications/new/'">
        <mat-icon>add</mat-icon>
      </button>
    </ng-container>
  </div>
</app-page-header>
<app-cf-endpoints-missing #appEndpointsMissing></app-cf-endpoints-missing>

<ng-template #noEntriesForCurrentFilter>
  <app-no-content-message [icon]="'apps'" [firstLine]="'There are no applications for the current filter'" [secondLine]="{
  text: ''
}"></app-no-content-message>
</ng-template>

<ng-template #noEntries>
  <app-no-content-message [icon]="'apps'" [firstLine]="'There are no applications'" [secondLine]="{
  text: ''
}"></app-no-content-message>
</ng-template>

<app-list class="app-wall" [noEntries]="noEntries" [noEntriesForCurrentFilter]="noEntriesForCurrentFilter"
  (initialised)="cfOrgSpaceService.enableAutoSelectors()"
  *ngIf="!!(cloudFoundryService.hasRegisteredCFEndpoints$ | async) && !!(cloudFoundryService.hasConnectedCFEndpoints$ | async)">
</app-list>