Skip to content

Commit

Permalink
Show all descriptor types. Revert later! (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyluu authored Mar 26, 2019
1 parent be3c047 commit c6b610e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/app/container/descriptors/descriptors.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
<div *ngIf="content">
<span class="row m-0">
<span class="col-sm-4">
<app-select *ngIf="!publicPage" [placeholder]="'Descriptor Type'" [items]="descriptors"
[default]="currentDescriptor" (select)="onDescriptorChange($event); checkIfValid(true, _selectedVersion)">
</app-select>
<app-select *ngIf="publicPage" [placeholder]="'Descriptor Type'" [items]="validDescriptors"
<app-select [placeholder]="'Descriptor Type'" [items]="descriptors"
[default]="currentDescriptor" (select)="onDescriptorChange($event); checkIfValid(true, _selectedVersion)">
</app-select>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/app/container/launch/launch.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="col-sm-4">
<mat-form-field class="m-2">
<mat-select name="toolVersions" [(value)]="currentDescriptor" (selectionChange)="reactToDescriptor($event)">
<mat-option *ngFor="let descriptor of validDescriptors" [value]="descriptor">{{descriptor}}</mat-option>
<mat-option *ngFor="let descriptor of descriptors" [value]="descriptor">{{descriptor}}</mat-option>
</mat-select>
</mat-form-field>
</div>
Expand Down
5 changes: 1 addition & 4 deletions src/app/container/paramfiles/paramfiles.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
<div *ngIf="content">
<span class="row m-0">
<span class="col-sm-4">
<app-select *ngIf="!publicPage" [placeholder]="'Descriptor Type'" [items]="descriptors"
[default]="currentDescriptor" (select)="onDescriptorChange($event); checkIfValid(false, _selectedVersion)">
</app-select>
<app-select *ngIf="publicPage" [placeholder]="'Descriptor Type'" [items]="validDescriptors"
<app-select [placeholder]="'Descriptor Type'" [items]="descriptors"
[default]="currentDescriptor" (select)="onDescriptorChange($event); checkIfValid(false, _selectedVersion)">
</app-select>
</span>
Expand Down

0 comments on commit c6b610e

Please sign in to comment.