integration of authentication
This commit is contained in:
@@ -61,7 +61,13 @@
|
||||
<ng-container matColumnDef="plateform">
|
||||
<th mat-header-cell *matHeaderCellDef> Plateforme </th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.platform}} </td>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
||||
<!-- Status Column -->
|
||||
<ng-container matColumnDef="status">
|
||||
<th mat-header-cell *matHeaderCellDef> Status </th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.status}} </td>
|
||||
</ng-container>
|
||||
|
||||
<!-- Action Column -->
|
||||
<ng-container matColumnDef="action">
|
||||
@@ -80,7 +86,7 @@
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns; trackBy: trackByElementId"></tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@@ -120,6 +126,12 @@
|
||||
<td mat-cell *matCellDef="let element"> {{element.platform}} </td>
|
||||
</ng-container>
|
||||
|
||||
<!-- Status Column -->
|
||||
<ng-container matColumnDef="status">
|
||||
<th mat-header-cell *matHeaderCellDef> Status </th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.status}} </td>
|
||||
</ng-container>
|
||||
|
||||
<!-- PostProcessing Column -->
|
||||
<ng-container matColumnDef="postProcessing">
|
||||
<th mat-header-cell *matHeaderCellDef> Post Processing </th>
|
||||
@@ -137,7 +149,7 @@
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumnsOld"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumnsOld;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumnsOld; trackBy: trackByElementId"></tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -20,8 +20,8 @@ export class SalesPageComponent implements OnInit,OnDestroy {
|
||||
|
||||
url: string = '';
|
||||
refreshSalesId: any;
|
||||
displayedColumns: string[] = ['title', 'date', 'house', 'plateform', 'action'];
|
||||
displayedColumnsOld: string[] = ['title', 'date', 'house', 'plateform', 'postProcessing', 'delete'];
|
||||
displayedColumns: string[] = ['title', 'date', 'house', 'plateform', 'status', 'action'];
|
||||
displayedColumnsOld: string[] = ['title', 'date', 'house', 'plateform', 'status', 'postProcessing', 'delete'];
|
||||
|
||||
futureSales = []
|
||||
pastSales = []
|
||||
@@ -62,6 +62,10 @@ export class SalesPageComponent implements OnInit,OnDestroy {
|
||||
.sort((a: any, b: any) => moment(a.date).isAfter(b.date) ? 1 : -1);
|
||||
});
|
||||
}
|
||||
|
||||
trackByElementId(index: number, element: any): string {
|
||||
return element._id;
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.titleService.setTitle('Jucundus - Sales');
|
||||
|
||||
Reference in New Issue
Block a user