subsystem.component.html 2.16 KB
Newer Older
Vitali Stupin's avatar
Vitali Stupin committed
1 2
<app-header></app-header>

Vitali Stupin's avatar
Vitali Stupin committed
3
<h3>{{'subsystem.heading' | translate:{"subsystem": subsystemId, "instance": getInstance() === "" ? paramsInstance : getInstance()} }}</h3>
Vitali Stupin's avatar
Vitali Stupin committed
4
<p [innerHTML]="'subsystem.intro.p1' | translate"></p>
5

6
<app-messages [message]="message" [subsystemId]="subsystemId"></app-messages>
7

Vitali Stupin's avatar
Vitali Stupin committed
8
<button type="button" class="btn btn-secondary" (click)="goToList()">{{'subsystem.allSystemsBtn' | translate}}</button>
Vitali Stupin's avatar
Vitali Stupin committed
9

Vitali Stupin's avatar
Vitali Stupin committed
10
<div *ngIf="(subsystemSubject | async) as subsystem">
11 12 13
  <div class="card">
    <div class="card-header">
      {{subsystem.fullSubsystemName}}
Vitali Stupin's avatar
Vitali Stupin committed
14 15 16
      <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>
    </div>  
17
    <div class="card-body" *ngIf="subsystem.subsystemStatus == 'ERROR'">
Vitali Stupin's avatar
Vitali Stupin committed
18
      <p>{{'subsystem.statusErrorInfo' | translate}}</p>
19 20
    </div>
    <div class="card-body" *ngIf="subsystem.subsystemStatus == 'OK' && !subsystem.methods.length">
Vitali Stupin's avatar
Vitali Stupin committed
21
      <p>{{'subsystem.statusEmptyInfo' | translate}}</p>
22 23 24 25
    </div>
    <div class="card-body" *ngIf="subsystem.subsystemStatus == 'OK' && subsystem.methods.length">
      <p *ngFor="let method of subsystem.methods">
        {{method.fullMethodName}}
Vitali Stupin's avatar
Vitali Stupin committed
26
        <a href="{{getApiUrlBase()}}{{method.wsdl}}" class="badge badge-success"
27
          *ngIf="method.wsdl" [target]="'_blank'">WSDL</a>
Vitali Stupin's avatar
Vitali Stupin committed
28
        <span class="badge badge-info" *ngIf="method.methodStatus == 'REST'">REST</span>
Vitali Stupin's avatar
Vitali Stupin committed
29 30 31 32
        <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>
33 34 35
    </div>
  </div>
</div>
36 37 38 39 40
<br>

<p *ngIf="subsystemSubject.value?.methods?.length">
  <button type="button" [ngClass]="'btn btn-secondary'" (click)="scrollToTop()">{{'scrollToTop' | translate}}</button>
</p>