|
58 | 58 | <strong>Version</strong>: {{ detailedAppRegistration.version }}
|
59 | 59 | </div>
|
60 | 60 | </div>
|
61 |
| - <div *ngIf="detailedAppRegistration?.options && detailedAppRegistration?.options.length > 0"> |
62 |
| - <table id="table-properties" class="table table-hover" *ngIf="detailedAppRegistration?.options"> |
63 |
| - <thead> |
64 |
| - <tr> |
65 |
| - <th> |
66 |
| - <app-sort id="sort-name" [indeterminate]="true" (change)="applySort($event)" [value]="'name'" |
67 |
| - [sort]="sort"> |
68 |
| - Property |
69 |
| - </app-sort> |
70 |
| - </th> |
71 |
| - <th>Description</th> |
72 |
| - </tr> |
73 |
| - </thead> |
74 |
| - <tbody> |
75 |
| - <tr *ngFor="let property of detailedAppRegistration.options | orderby:sort.sort:sort.order"> |
76 |
| - <td> |
77 |
| - <strong>{{ property.name }}</strong> |
78 |
| - <div *ngIf="property.isDeprecated"> |
79 |
| - <span class="label label-warning">Deprecation level: {{ property.deprecation.level }}</span> |
80 |
| - </div> |
81 |
| - </td> |
82 |
| - <td> |
83 |
| - <p>{{ property.description ? property.description : '(No Description Available)' }}</p> |
84 |
| - <p class="type-block"><code>{{ property.type }}</code> <span |
85 |
| - *ngIf="property.defaultValue">(Default value: <code>{{ property.defaultValue }}</code>)</span></p> |
86 |
| - </td> |
87 |
| - </tr> |
88 |
| - </tbody> |
89 |
| - </table> |
| 61 | + |
| 62 | + <div *ngIf="tooManyProperties && !showProperties" class="dataflow-alert dataflow-alert-info"> |
| 63 | + <p style="padding-bottom: 5px;"> |
| 64 | + There are <strong>more than 50 properties</strong> to display, the UI can be slow.<br>Do you want to |
| 65 | + <strong>display all the properties</strong> ? |
| 66 | + </p> |
| 67 | + <button class="btn btn-primary" (click)="showProperties = true">Show all the properties</button> |
| 68 | + </div> |
| 69 | + <div *ngIf="showProperties"> |
| 70 | + |
| 71 | + <div *ngIf="detailedAppRegistration?.options && detailedAppRegistration?.options.length > 0"> |
| 72 | + <table id="table-properties" class="table table-hover" *ngIf="detailedAppRegistration?.options"> |
| 73 | + <thead> |
| 74 | + <tr> |
| 75 | + <th> |
| 76 | + <app-sort id="sort-name" [indeterminate]="true" (change)="applySort($event)" [value]="'name'" |
| 77 | + [sort]="sort"> |
| 78 | + Property |
| 79 | + </app-sort> |
| 80 | + </th> |
| 81 | + <th>Description</th> |
| 82 | + </tr> |
| 83 | + </thead> |
| 84 | + <tbody> |
| 85 | + <tr *ngFor="let property of detailedAppRegistration.options | orderby:sort.sort:sort.order"> |
| 86 | + <td> |
| 87 | + <strong>{{ property.name }}</strong> |
| 88 | + <div *ngIf="property.isDeprecated"> |
| 89 | + <span class="label label-warning">Deprecation level: {{ property.deprecation.level }}</span> |
| 90 | + </div> |
| 91 | + </td> |
| 92 | + <td> |
| 93 | + <p>{{ property.description ? property.description : '(No Description Available)' }}</p> |
| 94 | + <p class="type-block"><code>{{ property.type }}</code> <span |
| 95 | + *ngIf="property.defaultValue">(Default value: <code>{{ property.defaultValue }}</code>)</span></p> |
| 96 | + </td> |
| 97 | + </tr> |
| 98 | + </tbody> |
| 99 | + </table> |
| 100 | + </div> |
90 | 101 | </div>
|
| 102 | + |
91 | 103 | <div *ngIf="!(detailedAppRegistration?.options && detailedAppRegistration?.options.length > 0)"
|
92 | 104 | class="dataflow-alert">
|
93 | 105 | No properties available.
|
94 | 106 | </div>
|
| 107 | + |
95 | 108 | </div>
|
96 | 109 | </div>
|
97 | 110 | </app-page>
|
0 commit comments