Fix "display all" value in videos filters
This commit is contained in:
parent
db05e6cebb
commit
965c592e89
|
@ -124,7 +124,7 @@
|
|||
</button>
|
||||
<div class="peertube-select-container">
|
||||
<select id="category" name="category" [(ngModel)]="advancedSearch.categoryOneOf" class="form-control">
|
||||
<option [value]="undefined" i18n>Display all categories</option>
|
||||
<option [ngValue]="undefined" i18n>Display all categories</option>
|
||||
<option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -137,7 +137,7 @@
|
|||
</button>
|
||||
<div class="peertube-select-container">
|
||||
<select id="licence" name="licence" [(ngModel)]="advancedSearch.licenceOneOf" class="form-control">
|
||||
<option [value]="undefined" i18n>Display all licenses</option>
|
||||
<option [ngValue]="undefined" i18n>Display all licenses</option>
|
||||
<option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -150,7 +150,7 @@
|
|||
</button>
|
||||
<div class="peertube-select-container">
|
||||
<select id="language" name="language" [(ngModel)]="advancedSearch.languageOneOf" class="form-control">
|
||||
<option [value]="undefined" i18n>Display all languages</option>
|
||||
<option [ngValue]="undefined" i18n>Display all languages</option>
|
||||
<option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
@ -109,6 +109,7 @@ export class SearchFiltersComponent implements OnInit {
|
|||
|
||||
formUpdated () {
|
||||
this.onDurationOrPublishedUpdated()
|
||||
console.log(this.advancedSearch)
|
||||
this.filtered.emit(this.advancedSearch)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue