Use ng-select for jobs list
This commit is contained in:
parent
29873257e7
commit
cb77bfcd0f
2 changed files with 21 additions and 5 deletions
|
@ -1,17 +1,23 @@
|
|||
<div class="admin-sub-header">
|
||||
<div class="select-filter-block">
|
||||
<label for="jobType" i18n>Job type</label>
|
||||
<div class="peertube-select-container">
|
||||
<select id="jobType" name="jobType" [(ngModel)]="jobType" (ngModelChange)="onJobStateOrTypeChanged()" class="form-control">
|
||||
<option *ngFor="let jobType of jobTypes" [value]="jobType">{{ jobType }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<ng-select
|
||||
class="select-job-type"
|
||||
labelForId="jobType"
|
||||
[(ngModel)]="jobType" (ngModelChange)="onJobStateOrTypeChanged()"
|
||||
[searchable]="true"
|
||||
[clearable]="false"
|
||||
>
|
||||
<ng-option *ngFor="let jobType of jobTypes" [value]="jobType">{{ jobType }}</ng-option>
|
||||
</ng-select>
|
||||
</div>
|
||||
|
||||
<div class="select-filter-block">
|
||||
<label for="jobState" i18n>Job state</label>
|
||||
<ng-select
|
||||
class="select-job-state"
|
||||
labelForId="jobState"
|
||||
[(ngModel)]="jobState"
|
||||
(ngModelChange)="onJobStateOrTypeChanged()"
|
||||
[clearable]="false"
|
||||
|
|
|
@ -5,6 +5,16 @@
|
|||
min-width: 120px;
|
||||
}
|
||||
|
||||
.select-job-type {
|
||||
min-width: 240px;
|
||||
|
||||
::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items {
|
||||
@media screen and (min-height: 500px) {
|
||||
max-height: calc(90vh - 250px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $primeng-breakpoint) {
|
||||
.job-id {
|
||||
max-width: 30vw !important;
|
||||
|
|
Loading…
Reference in a new issue