diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-10 11:02:42 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-10 11:02:42 +0100 |
commit | 8cf43a6524d354fbfa0f0eaf789e8d4756bd25d6 (patch) | |
tree | 3f33a5e36a89eedf7e4ebfa4d08336262e9604c2 /client/src/app/+search/search-filters.component.html | |
parent | 90701ec1d8d27d0072d6b0d2b19362d471484f9a (diff) | |
download | PeerTube-8cf43a6524d354fbfa0f0eaf789e8d4756bd25d6.tar.gz PeerTube-8cf43a6524d354fbfa0f0eaf789e8d4756bd25d6.tar.zst PeerTube-8cf43a6524d354fbfa0f0eaf789e8d4756bd25d6.zip |
Add filter on search results
Diffstat (limited to 'client/src/app/+search/search-filters.component.html')
-rw-r--r-- | client/src/app/+search/search-filters.component.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/client/src/app/+search/search-filters.component.html b/client/src/app/+search/search-filters.component.html index 4b87a2102..c4861e8c4 100644 --- a/client/src/app/+search/search-filters.component.html +++ b/client/src/app/+search/search-filters.component.html | |||
@@ -182,6 +182,31 @@ | |||
182 | > | 182 | > |
183 | </div> | 183 | </div> |
184 | 184 | ||
185 | <div class="form-group"> | ||
186 | <div class="radio-label label-container"> | ||
187 | <label i18n>Result types</label> | ||
188 | <button i18n class="reset-button reset-button-small" (click)="resetField('resultType')" *ngIf="advancedSearch.resultType !== undefined"> | ||
189 | Reset | ||
190 | </button> | ||
191 | </div> | ||
192 | |||
193 | <div class="peertube-radio-container"> | ||
194 | <input type="radio" name="resultType" id="resultTypeVideos" value="videos" [(ngModel)]="advancedSearch.resultType"> | ||
195 | <label i18n for="resultTypeVideos" class="radio">Videos</label> | ||
196 | </div> | ||
197 | |||
198 | <div class="peertube-radio-container"> | ||
199 | <input type="radio" name="resultType" id="resultTypeChannels" value="channels" [(ngModel)]="advancedSearch.resultType"> | ||
200 | <label i18n for="resultTypeChannels" class="radio">Channels</label> | ||
201 | </div> | ||
202 | |||
203 | <div class="peertube-radio-container"> | ||
204 | <input type="radio" name="resultType" id="resultTypePlaylists" value="playlists" [(ngModel)]="advancedSearch.resultType"> | ||
205 | <label i18n for="resultTypePlaylists" class="radio">Playlists</label> | ||
206 | </div> | ||
207 | |||
208 | </div> | ||
209 | |||
185 | <div class="form-group" *ngIf="isSearchTargetEnabled()"> | 210 | <div class="form-group" *ngIf="isSearchTargetEnabled()"> |
186 | <div class="radio-label label-container"> | 211 | <div class="radio-label label-container"> |
187 | <label i18n>Search target</label> | 212 | <label i18n>Search target</label> |