|
|
|
@ -1,18 +1,18 @@
|
|
|
|
|
<div class="mat-elevation-z8">
|
|
|
|
|
|
|
|
|
|
<grid-spinner [loading]="isLoadingResults"></grid-spinner>
|
|
|
|
|
<grid-spinner [loading]="isLoadingResults"></grid-spinner>
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<mat-select placeholder="Requests to Display" [(value)]="gridCount" (selectionChange)="ngAfterViewInit()">
|
|
|
|
|
<mat-option value="10">10</mat-option>
|
|
|
|
|
<mat-option value="15">15</mat-option>
|
|
|
|
|
<mat-option value="30">30</mat-option>
|
|
|
|
|
<mat-option value="100">100</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-select placeholder="Requests to Display" [(value)]="gridCount" (selectionChange)="ngAfterViewInit()">
|
|
|
|
|
<mat-option value="10">10</mat-option>
|
|
|
|
|
<mat-option value="15">15</mat-option>
|
|
|
|
|
<mat-option value="30">30</mat-option>
|
|
|
|
|
<mat-option value="100">100</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
<table mat-table [dataSource]="dataSource" class="table" matSort matSortActive="title"
|
|
|
|
|
matSortDisableClear matSortDirection="desc">
|
|
|
|
|
<table mat-table [dataSource]="dataSource" class="table" matSort matSortActive="title" matSortDisableClear
|
|
|
|
|
matSortDirection="desc">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="series">
|
|
|
|
@ -21,44 +21,42 @@
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="requestedBy">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef > Requested By </th>
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef> Requested By </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element"> {{element.requestedUser.userAlias}} </td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="status">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef > Status </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
{{element.parentRequest.status}}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="requestedDate">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Requested Date </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
{{element.requestedDate | amLocal | amDateFormat: 'LL'}}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container matColumnDef="status">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef> Status </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
{{element.parentRequest.status}}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="requestStatus">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef > Request Status </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
<div *ngIf="element.approved && !element.available">{{'Common.ProcessingRequest' | translate}}</div>
|
|
|
|
|
<div *ngIf="element.requested && !element.approved && !element.available">{{'Common.PendingApproval' |
|
|
|
|
|
translate}}
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!element.requested && !element.available && !element.approved">{{'Common.NotRequested' |
|
|
|
|
|
translate}}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container matColumnDef="requestedDate">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Requested Date </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
{{element.requestedDate | amLocal | amDateFormat: 'LL'}}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="requestStatus">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef> Request Status </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
<div *ngIf="element.approved && !element.available">{{'Common.ProcessingRequest' | translate}}</div>
|
|
|
|
|
<div *ngIf="!element.approved && !element.available">{{'Common.PendingApproval' |translate}}</div>
|
|
|
|
|
<div *ngIf="element.available">{{'Common.Available' | translate}}</div>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="actions">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef> </th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
<button mat-raised-button color="accent" [routerLink]="'/details/tv/' + element.parentRequest.tvDbId">Details</button>
|
|
|
|
|
<button mat-raised-button color="warn" (click)="openOptions(element)">Options</button>
|
|
|
|
|
<button mat-raised-button color="accent"
|
|
|
|
|
[routerLink]="'/details/tv/' + element.parentRequest.tvDbId">Details</button>
|
|
|
|
|
<button mat-raised-button color="warn" (click)="openOptions(element)" *ngIf="isAdmin">Options</button>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
@ -67,4 +65,4 @@
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<mat-paginator [length]="resultsLength" [pageSize]="gridCount"></mat-paginator>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|