|
25 | 25 | </div>
|
26 | 26 | </div>
|
27 | 27 | <div *ngIf="activeIndex === 1">
|
28 |
| - <div class="modal-body"> |
29 |
| - <h4 *ngIf="connectionCompletionOptions">Host Selection</h4> |
| 28 | + <div class="modal-body" *ngIf="hostCompletionOptions; else noHostOptions"> |
| 29 | + <h4>Host Selection</h4> |
30 | 30 | <div class="panel panel-default" *ngFor="let hostCompletionOption of hostCompletionOptions">
|
31 | 31 | <div class="panel-heading">
|
32 | 32 | <h3 class="panel-title">Node template requiring host: {{hostCompletionOption?.nodeID}}</h3>
|
33 | 33 | </div>
|
34 | 34 | <div class="panel-body" [style.height.px]="amountOfHostOptions * 50">
|
35 | 35 | <p-dropdown [options]="hostOptions"
|
36 | 36 | (onChange)="onUpdateHostSelection(hostCompletionOption, $event)"
|
37 |
| - autoWidth="false" |
38 | 37 | [style]="{'width':'100%'}"
|
39 | 38 | required>
|
40 | 39 | </p-dropdown>
|
41 | 40 | </div>
|
42 | 41 | </div>
|
43 | 42 | </div>
|
| 43 | + <ng-template #noHostOptions> |
| 44 | + <div class="modal-body"> |
| 45 | + There are no host options to select! |
| 46 | + </div> |
| 47 | + </ng-template> |
44 | 48 | </div>
|
45 | 49 | <div *ngIf="activeIndex === 2">
|
46 |
| - <div class="modal-body"> |
47 |
| - <h4 *ngIf="connectionCompletionOptions">Connection Selection</h4> |
| 50 | + <div class="modal-body" *ngIf="connectionCompletionOptions; else noConnectionOptions"> |
| 51 | + <h4>Connection Selection</h4> |
48 | 52 | <div class="panel panel-default" *ngFor="let connectionCompletionOption of connectionCompletionOptions">
|
49 | 53 | <div class="panel-heading">
|
50 | 54 | <h3 class="panel-title">Open Requirement: {{connectionCompletionOption?.nodeID}}</h3>
|
51 | 55 | </div>
|
52 | 56 | <div class="panel-body" [style.height.px]="amountOfConnectOptions * 50">
|
53 | 57 | <p-dropdown [options]="connectOptions"
|
54 | 58 | (onChange)="onUpdateConnectionSelection(connectionCompletionOption, $event)"
|
55 |
| - autoWidth="false" |
56 | 59 | [style]="{'width':'100%'}"
|
57 | 60 | required>
|
58 | 61 | </p-dropdown>
|
59 | 62 | </div>
|
60 | 63 | </div>
|
61 | 64 | </div>
|
| 65 | + <ng-template #noConnectionOptions> |
| 66 | + <div class="modal-body"> |
| 67 | + There are no connection options to select! |
| 68 | + </div> |
| 69 | + </ng-template> |
62 | 70 | </div>
|
63 | 71 | <div *ngIf="activeIndex === 3">
|
64 | 72 | <div class="opentosca-modal-content">
|
|
0 commit comments