subsystem-item.component.html 1.66 KB
Newer Older
1 2
<div class="card">
  <div class="card-header pointerCursor" (click)="showDetail()">
Vitali Stupin's avatar
Vitali Stupin committed
3
    {{subsystem.fullSubsystemName}}
Vitali Stupin's avatar
Vitali Stupin committed
4 5
    <span class="badge badge-secondary" *ngIf="!subsystem.methods.length && subsystem.subsystemStatus == 'OK'">{{'subsystem.statusEmpty' | translate}}</span>
    <span class="badge badge-danger" *ngIf="subsystem.subsystemStatus == 'ERROR'">{{'subsystem.statusError' | translate}}</span>
Vitali Stupin's avatar
Initial  
Vitali Stupin committed
6
  </div>
7
  <div class="card-body" *ngIf="subsystem.subsystemStatus == 'ERROR'">
Vitali Stupin's avatar
Vitali Stupin committed
8
    <p>{{'subsystem.statusErrorInfo' | translate}}</p>
Vitali Stupin's avatar
Initial  
Vitali Stupin committed
9
  </div>
10
  <div class="card-body" *ngIf="subsystem.subsystemStatus == 'OK' && !subsystem.methods.length">
Vitali Stupin's avatar
Vitali Stupin committed
11
    <p>{{'subsystem.statusEmptyInfo' | translate}}</p>
12 13 14
  </div>
  <div class="card-body" *ngIf="subsystem.subsystemStatus == 'OK' && subsystem.methods.length">
    <p *ngFor="let method of getMethodsPreview()">
Vitali Stupin's avatar
Vitali Stupin committed
15
      {{method.fullMethodName}}
Vitali Stupin's avatar
Vitali Stupin committed
16
      <a href="{{getApiUrlBase()}}{{method.wsdl}}" class="badge badge-success"
17
        *ngIf="method.wsdl" [target]="'_blank'">WSDL</a>
Vitali Stupin's avatar
Vitali Stupin committed
18
      <span class="badge badge-info" *ngIf="method.methodStatus == 'REST'">REST</span>
Vitali Stupin's avatar
Vitali Stupin committed
19 20 21 22
      <span class="badge badge-danger" *ngIf="method.methodStatus == 'ERROR'">{{'subsystem.statusWsdlError' | translate}}</span>
      <span class="badge badge-danger" *ngIf="method.methodStatus == 'TIMEOUT'">{{'subsystem.statusWsdlTimeout' | translate}}</span>
      <span class="badge badge-warning" *ngIf="method.methodStatus == 'SKIPPED'">{{'subsystem.statusWsdlSkipped' | translate}}</span>
  </p>
23
    <p *ngIf="getNotInPreview() > 0" class="pointerCursor" (click)="showDetail()">
Vitali Stupin's avatar
Vitali Stupin committed
24
      {{'subsystem.moreMethods' | translate:{"count": getNotInPreview()} }}
25
    </p>
Vitali Stupin's avatar
Initial  
Vitali Stupin committed
26
  </div>
Vitali Stupin's avatar
Vitali Stupin committed
27
</div>