2018-04-18 12:56:57 +00:00
|
|
|
<div *ngIf="sensor">
|
|
|
|
<h1>{{sensor.crawler.name}}</h1>
|
2018-04-18 11:28:53 +00:00
|
|
|
|
2018-04-18 12:56:57 +00:00
|
|
|
<div *ngIf="sensor.status.name === 'RUNNING' ; else STOPPED">
|
|
|
|
<div class="ui-messages ui-widget ui-corner-all ui-messages-success" style="margin: 0 0 1em 0; display: block">
|
|
|
|
<span class="ui-messages-icon fa fa-fw fa-2x fa-check"></span>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span class="ui-messages-summary" style="font-size:16px">RUNNING</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-04-18 11:28:53 +00:00
|
|
|
</div>
|
2018-04-18 12:56:57 +00:00
|
|
|
<ng-template #STOPPED>
|
|
|
|
<div class="ui-messages ui-widget ui-corner-all ui-messages-error" style="margin: 0 0 1em 0; display: block">
|
|
|
|
<span class="ui-messages-icon fa fa-fw fa-2x fa-warning"></span>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span class="ui-messages-summary" style="font-size:16px">STOPPED</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<div class="ui-bottom-space-10" dir="rtl">
|
|
|
|
<button class="ui-button-danger ui-button-width-fit" type="button" label="Remove" icon="ui-icon-close" pButton (click)="onRemove()"></button>
|
|
|
|
<button class="ui-button-width-fit" type="button" label="Edit" pButton (click)="onEdit()"></button>
|
|
|
|
<button class="ui-button-width-fit" type="button" label="Start/Stop" pButton (click)="onStartOrStop()"></button>
|
2018-04-18 11:28:53 +00:00
|
|
|
</div>
|
|
|
|
|
2018-04-18 12:56:57 +00:00
|
|
|
<div class="ui-g">
|
|
|
|
<div class="ui-g-12 ui-md-3">
|
|
|
|
<div class="ui-g form-group">
|
|
|
|
<of-key-value [key]="'ID'" [value]="sensor.id"></of-key-value>
|
|
|
|
<of-key-value [key]="'Location'" [value]="sensor.target.displayName" [clickable]="true" (click)="onTargetClick($event)" ></of-key-value>
|
|
|
|
<of-key-value [key]="'Description'" [value]="sensor.description"></of-key-value>
|
|
|
|
<of-key-value [key]="'Crawler Type'" [value]="sensor.crawler.name"></of-key-value>
|
|
|
|
<of-key-value [key]="'Sensor Items'" [value]="sensor.itemCount"></of-key-value>
|
|
|
|
<of-key-value [key]="'Created at'" [value]="sensor.createDate | date: 'dd/MM/yyyy'"></of-key-value>
|
2018-04-18 11:28:53 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-04-18 12:56:57 +00:00
|
|
|
<div class="ui-g-12 ui-md-9">
|
|
|
|
<h1>Monitored Items</h1>
|
|
|
|
<of-sensor-item-list></of-sensor-item-list>
|
|
|
|
</div>
|
2018-04-18 11:28:53 +00:00
|
|
|
</div>
|
2018-04-18 12:56:57 +00:00
|
|
|
<p-confirmDialog header="Confirmation" icon="fa ui-icon-warning" width="425"></p-confirmDialog>
|
|
|
|
</div>
|