subsystem.component.html 1.6 KB
Newer Older
1
2
3
4
5
6
<h3>Subsystem {{subsystemId}} with methods and WSDL descriptions for
  X-tee instance "EE"</h3>
<p>Support: <a href="mailto:help@ria.ee">help@ria.ee</a></p>

<app-message></app-message>

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
37
38
<div *ngIf="loadingDone() && subsystem">
  <div class="card">
    <div class="card-header">
      {{subsystem.fullSubsystemName}}
      <span class="badge badge-secondary" *ngIf="!subsystem.methods.length && subsystem.subsystemStatus == 'OK'">Empty</span>
      <span class="badge badge-danger" *ngIf="subsystem.subsystemStatus == 'ERROR'">Error</span>
    </div>
    <div class="card-body" *ngIf="subsystem.subsystemStatus == 'ERROR'">
      <p>Subsystem either could not be reached by RIA's Monitoring Security Server
        or there was some other error during the request.</p>
    </div>
    <div class="card-body" *ngIf="subsystem.subsystemStatus == 'OK' && !subsystem.methods.length">
      <p>Subsystem does not have any methods.</p>
    </div>
    <div class="card-body" *ngIf="subsystem.subsystemStatus == 'OK' && subsystem.methods.length">
      <p *ngFor="let method of subsystem.methods">
        {{method.fullMethodName}}
        <a href="{{methodsService.apiUrlBase}}{{method.wsdl}}" class="badge badge-success"
          *ngIf="method.wsdl" [target]="'_blank'">WSDL</a>
        <span class="badge badge-danger" *ngIf="!method.wsdl">Error while downloading or parsing of WSDL</span>
      </p>
    </div>
  </div>
</div>

<div *ngIf="loadingDone() && !subsystem">
  <p>
    Subsystem "{{subsystemId}}" cannot be found!
  </p>
</div>
  
<button type="button" class="btn btn-secondary" (click)="goToList()">Show all subsystems</button>