2018-05-28 09:58:13 +00:00
|
|
|
SENSOR_DETAIL_COMPONENT
|
2018-06-04 05:19:55 +00:00
|
|
|
<div *ngIf="sensor">
|
2018-04-18 12:56:57 +00:00
|
|
|
<h1>{{sensor.crawler.name}}</h1>
|
2018-04-18 11:28:53 +00:00
|
|
|
|
2018-04-19 15:04:58 +00:00
|
|
|
<div class="ui-g">
|
|
|
|
<div class="ui-g-12 ui-md-3">
|
|
|
|
<div *ngIf="sensor.status.name === 'RUNNING' ; else STOPPED">
|
|
|
|
<div class="ui-messages ui-widget ui-corner-all ui-messages-success" style="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>
|
|
|
|
</div>
|
|
|
|
<ng-template #STOPPED>
|
|
|
|
<div class="ui-messages ui-widget ui-corner-all ui-messages-error" style="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>
|
2018-04-18 12:56:57 +00:00
|
|
|
</div>
|
|
|
|
|
2018-04-19 15:04:58 +00:00
|
|
|
<div class="ui-g-12 ui-md-9" dir="rtl" style="margin-top: 20px">
|
|
|
|
<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>
|
|
|
|
</div>
|
2018-04-18 11:28:53 +00:00
|
|
|
</div>
|
|
|
|
|
2018-04-19 15:04:58 +00:00
|
|
|
<div class="ui-g ui-top-space--0-5em">
|
2018-04-18 12:56:57 +00:00
|
|
|
<div class="ui-g-12 ui-md-3">
|
2018-04-19 15:04:58 +00:00
|
|
|
<p-panel [showHeader]="false">
|
|
|
|
<div class="ui-g form-group ui-key-value">
|
|
|
|
<of-key-value [key]="'ID'" [value]="sensor.id"></of-key-value>
|
2018-06-04 12:15:15 +00:00
|
|
|
<of-key-value [key]="'Location'" [value]="sensor.target.displayName" [clickable]="true" (click)="selectTarget.emit(sensor.target)"></of-key-value>
|
2018-04-19 15:04:58 +00:00
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</p-panel>
|
2018-04-18 11:28:53 +00:00
|
|
|
</div>
|
|
|
|
|
2018-04-18 12:56:57 +00:00
|
|
|
<div class="ui-g-12 ui-md-9">
|
|
|
|
<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>
|
2018-05-10 08:56:30 +00:00
|
|
|
</div>
|
2018-06-04 05:19:55 +00:00
|
|
|
|