[ADF-2312] Sites Dropdown component - default select option (#2994)

* fix gallery view sort drop down empty values
restore recent in main pace
trashcan example demo shell add multi select

* add selectable default value

* remove change delete directive

* remove fdescribe

* missing return type
This commit is contained in:
Eugenio Romano
2018-02-24 18:00:41 +00:00
committed by GitHub
parent a2ff6d85b0
commit 76cf4f178e
6 changed files with 75 additions and 35 deletions

View File

@@ -6,10 +6,10 @@
placeholder="{{placeholder | translate}}"
floatPlaceholder="never"
data-automation-id="site-my-files-select"
[(ngModel)]="siteSelected"
(ngModelChange)="selectedSite()">
[(value)]="selected"
(selectionChange)="selectedSite($event)">
<mat-option *ngIf="!hideMyFiles" data-automation-id="site-my-files-option" id="default_site_option" [value]="MY_FILES_VALUE">{{'DROPDOWN.MY_FILES_OPTION' | translate}}</mat-option>
<mat-option *ngFor="let site of siteList?.list.entries" [value]="site.entry.guid">
<mat-option *ngFor="let site of siteList?.list.entries" [value]="site">
{{ site.entry.title | translate}}
</mat-option>
</mat-select>