mirror of https://github.com/Chocobozzz/PeerTube
Client: fix search dropdown
parent
5683534893
commit
2ac6c52560
|
@ -6,6 +6,7 @@ import { RouterModule } from '@angular/router';
|
||||||
import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
|
import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
|
||||||
|
|
||||||
import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
|
import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
|
||||||
|
import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
|
||||||
import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
|
import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
|
||||||
import { PaginationModule } from 'ng2-bootstrap/components/pagination';
|
import { PaginationModule } from 'ng2-bootstrap/components/pagination';
|
||||||
import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
|
import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
|
||||||
|
@ -111,6 +112,7 @@ const APP_PROVIDERS = [
|
||||||
HttpModule,
|
HttpModule,
|
||||||
RouterModule.forRoot(routes),
|
RouterModule.forRoot(routes),
|
||||||
|
|
||||||
|
DropdownModule,
|
||||||
ProgressbarModule,
|
ProgressbarModule,
|
||||||
PaginationModule,
|
PaginationModule,
|
||||||
FileUploadModule
|
FileUploadModule
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle>
|
<button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle>
|
||||||
{{ getStringChoice(searchCriterias.field) }} <span class="caret"></span>
|
{{ getStringChoice(searchCriterias.field) }} <span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav" dropdownMenu>
|
||||||
<li *ngFor="let choice of choiceKeys" class="dropdown-item">
|
<li *ngFor="let choice of choiceKeys" class="dropdown-item" role="menu-item">
|
||||||
<a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a>
|
<a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue