diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
commit | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (patch) | |
tree | fa29fcfd704cbc56c7bc3e3e1c15d84ea0f4dc61 /client/src/app/+search | |
parent | 25ea1d85e155382367d11036617848fe69a1e6a4 (diff) | |
download | PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.gz PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.zst PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.zip |
Fix lint
Diffstat (limited to 'client/src/app/+search')
-rw-r--r-- | client/src/app/+search/search-filters.component.html | 14 | ||||
-rw-r--r-- | client/src/app/+search/search.component.html | 6 | ||||
-rw-r--r-- | client/src/app/+search/shared/abstract-lazy-load.resolver.ts | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/client/src/app/+search/search-filters.component.html b/client/src/app/+search/search-filters.component.html index 5bce009d5..ed0632a4d 100644 --- a/client/src/app/+search/search-filters.component.html +++ b/client/src/app/+search/search-filters.component.html | |||
@@ -4,7 +4,7 @@ | |||
4 | <div class="col-lg-4 col-md-6 col-xs-12"> | 4 | <div class="col-lg-4 col-md-6 col-xs-12"> |
5 | <div class="form-group"> | 5 | <div class="form-group"> |
6 | <div class="radio-label label-container"> | 6 | <div class="radio-label label-container"> |
7 | <label i18n>Sort</label> | 7 | <label for="sort" i18n>Sort</label> |
8 | <button i18n class="reset-button reset-button-small" (click)="resetField('sort', '-match')" *ngIf="advancedSearch.sort !== '-match'"> | 8 | <button i18n class="reset-button reset-button-small" (click)="resetField('sort', '-match')" *ngIf="advancedSearch.sort !== '-match'"> |
9 | Reset | 9 | Reset |
10 | </button> | 10 | </button> |
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | <div class="form-group"> | 19 | <div class="form-group"> |
20 | <div class="radio-label label-container"> | 20 | <div class="radio-label label-container"> |
21 | <label i18n>Display only</label> | 21 | <label for="isLive" i18n>Display only</label> |
22 | <button i18n class="reset-button reset-button-small" (click)="resetField('isLive')" *ngIf="advancedSearch.isLive !== undefined"> | 22 | <button i18n class="reset-button reset-button-small" (click)="resetField('isLive')" *ngIf="advancedSearch.isLive !== undefined"> |
23 | Reset | 23 | Reset |
24 | </button> | 24 | </button> |
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | <div class="form-group"> | 38 | <div class="form-group"> |
39 | <div class="radio-label label-container"> | 39 | <div class="radio-label label-container"> |
40 | <label i18n>Display sensitive content</label> | 40 | <label for="sensitiveContent" i18n>Display sensitive content</label> |
41 | <button i18n class="reset-button reset-button-small" (click)="resetField('nsfw')" *ngIf="advancedSearch.nsfw !== undefined"> | 41 | <button i18n class="reset-button reset-button-small" (click)="resetField('nsfw')" *ngIf="advancedSearch.nsfw !== undefined"> |
42 | Reset | 42 | Reset |
43 | </button> | 43 | </button> |
@@ -56,7 +56,7 @@ | |||
56 | 56 | ||
57 | <div class="form-group"> | 57 | <div class="form-group"> |
58 | <div class="radio-label label-container"> | 58 | <div class="radio-label label-container"> |
59 | <label i18n>Published date</label> | 59 | <label for="publishedDateRange" i18n>Published date</label> |
60 | <button i18n class="reset-button reset-button-small" (click)="resetLocalField('publishedDateRange')" *ngIf="publishedDateRange !== undefined"> | 60 | <button i18n class="reset-button reset-button-small" (click)="resetLocalField('publishedDateRange')" *ngIf="publishedDateRange !== undefined"> |
61 | Reset | 61 | Reset |
62 | </button> | 62 | </button> |
@@ -105,7 +105,7 @@ | |||
105 | <div class="col-lg-4 col-md-6 col-xs-12"> | 105 | <div class="col-lg-4 col-md-6 col-xs-12"> |
106 | <div class="form-group"> | 106 | <div class="form-group"> |
107 | <div class="radio-label label-container"> | 107 | <div class="radio-label label-container"> |
108 | <label i18n>Duration</label> | 108 | <label for="durationRange" i18n>Duration</label> |
109 | <button i18n class="reset-button reset-button-small" (click)="resetLocalField('durationRange')" *ngIf="durationRange !== undefined"> | 109 | <button i18n class="reset-button reset-button-small" (click)="resetLocalField('durationRange')" *ngIf="durationRange !== undefined"> |
110 | Reset | 110 | Reset |
111 | </button> | 111 | </button> |
@@ -184,7 +184,7 @@ | |||
184 | 184 | ||
185 | <div class="form-group"> | 185 | <div class="form-group"> |
186 | <div class="radio-label label-container"> | 186 | <div class="radio-label label-container"> |
187 | <label i18n>Result types</label> | 187 | <label for="resultType" i18n>Result types</label> |
188 | <button i18n class="reset-button reset-button-small" (click)="resetField('resultType')" *ngIf="advancedSearch.resultType !== undefined"> | 188 | <button i18n class="reset-button reset-button-small" (click)="resetField('resultType')" *ngIf="advancedSearch.resultType !== undefined"> |
189 | Reset | 189 | Reset |
190 | </button> | 190 | </button> |
@@ -209,7 +209,7 @@ | |||
209 | 209 | ||
210 | <div class="form-group" *ngIf="isSearchTargetEnabled()"> | 210 | <div class="form-group" *ngIf="isSearchTargetEnabled()"> |
211 | <div class="radio-label label-container"> | 211 | <div class="radio-label label-container"> |
212 | <label i18n>Search target</label> | 212 | <label for="searchTarget" i18n>Search target</label> |
213 | </div> | 213 | </div> |
214 | 214 | ||
215 | <div class="peertube-radio-container"> | 215 | <div class="peertube-radio-container"> |
diff --git a/client/src/app/+search/search.component.html b/client/src/app/+search/search.component.html index 2530c87b7..fef6f8e8c 100644 --- a/client/src/app/+search/search.component.html +++ b/client/src/app/+search/search.component.html | |||
@@ -10,8 +10,8 @@ | |||
10 | <span *ngIf="currentSearch" i18n>for <span class="search-value">{{ currentSearch }}</span></span> | 10 | <span *ngIf="currentSearch" i18n>for <span class="search-value">{{ currentSearch }}</span></span> |
11 | </div> | 11 | </div> |
12 | 12 | ||
13 | <div | 13 | <button |
14 | class="results-filter-button ms-auto" (click)="isSearchFilterCollapsed = !isSearchFilterCollapsed" role="button" | 14 | class="results-filter-button button-unstyle ms-auto" (click)="isSearchFilterCollapsed = !isSearchFilterCollapsed" |
15 | [attr.aria-expanded]="!isSearchFilterCollapsed" aria-controls="collapseBasic" | 15 | [attr.aria-expanded]="!isSearchFilterCollapsed" aria-controls="collapseBasic" |
16 | > | 16 | > |
17 | <span class="icon icon-filter"></span> | 17 | <span class="icon icon-filter"></span> |
@@ -19,7 +19,7 @@ | |||
19 | Filters | 19 | Filters |
20 | <span *ngIf="numberOfFilters() > 0" class="pt-badge badge-secondary">{{ numberOfFilters() }}</span> | 20 | <span *ngIf="numberOfFilters() > 0" class="pt-badge badge-secondary">{{ numberOfFilters() }}</span> |
21 | </ng-container> | 21 | </ng-container> |
22 | </div> | 22 | </button> |
23 | </div> | 23 | </div> |
24 | 24 | ||
25 | <div class="results-filter" [ngbCollapse]="isSearchFilterCollapsed" [animation]="true"> | 25 | <div class="results-filter" [ngbCollapse]="isSearchFilterCollapsed" [animation]="true"> |
diff --git a/client/src/app/+search/shared/abstract-lazy-load.resolver.ts b/client/src/app/+search/shared/abstract-lazy-load.resolver.ts index 6940a7a9b..6765ba15e 100644 --- a/client/src/app/+search/shared/abstract-lazy-load.resolver.ts +++ b/client/src/app/+search/shared/abstract-lazy-load.resolver.ts | |||
@@ -4,7 +4,7 @@ import { ActivatedRouteSnapshot, Router } from '@angular/router' | |||
4 | import { logger } from '@root-helpers/logger' | 4 | import { logger } from '@root-helpers/logger' |
5 | import { ResultList } from '@shared/models' | 5 | import { ResultList } from '@shared/models' |
6 | 6 | ||
7 | export abstract class AbstractLazyLoadResolver <T> { | 7 | export abstract class AbstractLazyLoadResolver <T> { |
8 | protected router: Router | 8 | protected router: Router |
9 | 9 | ||
10 | resolve (route: ActivatedRouteSnapshot) { | 10 | resolve (route: ActivatedRouteSnapshot) { |