aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-13 21:59:19 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-13 21:59:19 +0200
commit2ac6c5256067b13d90c8c1faa310bd59aea9a1fa (patch)
tree373089579f161b06de74f887144f9c44d04986ca /client/src
parent5683534893025b962cfb14fe5c1319b0b278e77d (diff)
downloadPeerTube-2ac6c5256067b13d90c8c1faa310bd59aea9a1fa.tar.gz
PeerTube-2ac6c5256067b13d90c8c1faa310bd59aea9a1fa.tar.zst
PeerTube-2ac6c5256067b13d90c8c1faa310bd59aea9a1fa.zip
Client: fix search dropdown
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/app.module.ts2
-rw-r--r--client/src/app/shared/search/search.component.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
index 980625f13..80734f7a2 100644
--- a/client/src/app/app.module.ts
+++ b/client/src/app/app.module.ts
@@ -6,6 +6,7 @@ import { RouterModule } from '@angular/router';
6import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; 6import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
7 7
8import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; 8import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
9import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
9import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; 10import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
10import { PaginationModule } from 'ng2-bootstrap/components/pagination'; 11import { PaginationModule } from 'ng2-bootstrap/components/pagination';
11import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; 12import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
@@ -111,6 +112,7 @@ const APP_PROVIDERS = [
111 HttpModule, 112 HttpModule,
112 RouterModule.forRoot(routes), 113 RouterModule.forRoot(routes),
113 114
115 DropdownModule,
114 ProgressbarModule, 116 ProgressbarModule,
115 PaginationModule, 117 PaginationModule,
116 FileUploadModule 118 FileUploadModule
diff --git a/client/src/app/shared/search/search.component.html b/client/src/app/shared/search/search.component.html
index fb13ac72e..b3afc9598 100644
--- a/client/src/app/shared/search/search.component.html
+++ b/client/src/app/shared/search/search.component.html
@@ -3,8 +3,8 @@
3 <button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle> 3 <button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle>
4 {{ getStringChoice(searchCriterias.field) }} <span class="caret"></span> 4 {{ getStringChoice(searchCriterias.field) }} <span class="caret"></span>
5 </button> 5 </button>
6 <ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav"> 6 <ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav" dropdownMenu>
7 <li *ngFor="let choice of choiceKeys" class="dropdown-item"> 7 <li *ngFor="let choice of choiceKeys" class="dropdown-item" role="menu-item">
8 <a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a> 8 <a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a>
9 </li> 9 </li>
10 </ul> 10 </ul>