|
1 |
| -<form #refreshRateForm="ngForm" class="form-inline" name="refreshRateForm" role="form" (ngSubmit)="changeRefreshRate()" novalidate> |
| 1 | +<form #refreshRateForm="ngForm" class="form-inline" name="refreshRateForm" role="form" (ngSubmit)="changeRefreshRate()" |
| 2 | + novalidate> |
2 | 3 | <div class="form-group">
|
3 | 4 | <label for="refreshRateFormField" style="display: inline">Update [seconds]:</label>
|
4 |
| - <input #refreshRateFormField2="ngModel" type="number" id="refreshRateFormField" name="refreshRateFormField" autofocus [(ngModel)]="refreshRateFormField" required |
5 |
| - class="form-control" placeholder="Inerval in seconds" style="width: 150px"/> |
| 5 | + <input #refreshRateFormField2="ngModel" type="number" id="refreshRateFormField" name="refreshRateFormField" |
| 6 | + autofocus [(ngModel)]="refreshRateFormField" required |
| 7 | + class="form-control input-sm" placeholder="Inerval in seconds" style="width: 100px"/> |
6 | 8 | <span class="help-block" *ngIf="refreshRateFormField2.invalid && refreshRateFormField2.touched">Please provide a valid polling interval (0-1000s).</span>
|
7 | 9 | </div>
|
8 |
| - <button type="submit" [disabled]="refreshRateForm.invalid" |
9 |
| - class="btn btn-default">Update <span class="glyphicon glyphicon-arrow-right"></span></button> |
| 10 | + <button type="submit" [disabled]="refreshRateForm.invalid" style="margin-top: 1px;margin-left:2px" |
| 11 | + class="btn btn-primary">Update |
| 12 | + </button> |
10 | 13 | </form>
|
11 |
| -<div *ngIf="!counters || counters.items.length === 0">No counters available.</div> |
| 14 | + |
| 15 | +<hr> |
| 16 | + |
| 17 | +<div *ngIf="!counters || counters.items.length === 0"> |
| 18 | + <div class="alert alert-warning" style="display:inline-block;margin:0 auto"> |
| 19 | + No counters available. |
| 20 | + </div> |
| 21 | +</div> |
| 22 | + |
12 | 23 | <table *ngIf="counters?.items && counters.items.length > 0" class="table table-hover">
|
13 | 24 | <thead>
|
14 |
| - <tr> |
15 |
| - <th style="width: 100px">Stream</th> |
16 |
| - <th style="width: 100px">Value</th> |
17 |
| - <th style="width: 100px">Latest [counts/second]</th> |
18 |
| - <th style="width: 300px">Rate [counts/second]</th> |
19 |
| - </tr> |
| 25 | + <tr> |
| 26 | + <th style="width: 100px">Stream</th> |
| 27 | + <th style="width: 100px">Value</th> |
| 28 | + <th style="width: 100px">Latest [counts/second]</th> |
| 29 | + <th style="width: 300px">Rate [counts/second]</th> |
| 30 | + </tr> |
20 | 31 | </thead>
|
21 | 32 | <tbody>
|
22 |
| - <tr *ngFor="let item of counters.items | paginate: counters.getPaginationInstance(); index as i; trackBy: trackByIndex"> |
| 33 | + <tr |
| 34 | + *ngFor="let item of counters.items | paginate: counters.getPaginationInstance(); index as i; trackBy: trackByIndex"> |
23 | 35 | <td>{{ item.name }}</td>
|
24 | 36 | <td>{{ item.value }}</td>
|
25 | 37 | <td>{{ item.latestRate }}</td>
|
26 | 38 | <td>
|
27 | 39 | <app-graph-chart [chartData]="item.rates" [height]="140" [total]="totalCacheSize()"
|
28 |
| - [reverse]="true" [axisUnitsX]="'seconds ago'" [axisUnitsY]="'counts'" |
29 |
| - [unitsPerTickX]="refreshRate"></app-graph-chart> |
| 40 | + [reverse]="true" [axisUnitsX]="'seconds ago'" [axisUnitsY]="'counts'" |
| 41 | + [unitsPerTickX]="refreshRate"></app-graph-chart> |
30 | 42 | </td>
|
31 | 43 | </tr>
|
32 | 44 | </tbody>
|
33 | 45 | </table>
|
34 |
| -<pagination-controls *ngIf="counters?.items && counters?.items.length > 0" (pageChange)="getPage($event)"></pagination-controls> |
| 46 | +<pagination-controls *ngIf="counters?.items && counters?.items.length > 0" |
| 47 | + (pageChange)="getPage($event)"></pagination-controls> |
35 | 48 |
|
0 commit comments