From 998377e6d3eec5a1d3c8f65296d2126aa8ee402d Mon Sep 17 00:00:00 2001 From: Frank Rohde <frank.rohde@tu-dresden.de> Date: Thu, 25 Nov 2021 22:57:35 +0100 Subject: [PATCH] renamed field shipmentBinNr_Ist to shipmentBinNrIst used <mat-basic-chip> instead of <mat-chip> to get a green background --- .../components/pick-list/pick-list.component.html | 12 ++++++------ src/app/model/picker-model.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/components/pick-list/pick-list.component.html b/src/app/components/pick-list/pick-list.component.html index a467249..43a2040 100644 --- a/src/app/components/pick-list/pick-list.component.html +++ b/src/app/components/pick-list/pick-list.component.html @@ -36,9 +36,9 @@ <th mat-header-cell *matHeaderCellDef> Inventory Ist </th> <td mat-cell *matCellDef="let item"> <mat-chip-list *ngIf="item.inventoryItemIst"> - <mat-chip selected [color]="item.inventoryIsCorrect === false ? 'warn' : 'primary'"> + <mat-basic-chip selected [style]="item.inventoryIsCorrect === false ? 'background-color:red; color:white' : 'background-color:green; color:white'"> {{item.inventoryItemIst}} - </mat-chip> + </mat-basic-chip> </mat-chip-list> </td> </ng-container> @@ -49,10 +49,10 @@ Shipment Ist </th> <td mat-cell *matCellDef="let item"> - <mat-chip-list *ngIf="item.shipmentBinNr_Ist"> - <mat-chip selected [color]="item.shipmentIsCorrect === false ? 'warn' : 'primary'"> - {{item.shipmentBinNr_Ist}} - </mat-chip> + <mat-chip-list *ngIf="item.shipmentBinNrIst"> + <mat-basic-chip selected [style]="item.shipmentIsCorrect === false ? 'background-color:red; color:white' : 'background-color:green; color:white'"> + {{item.shipmentBinNrIst}} + </mat-basic-chip> </mat-chip-list> </td> </ng-container> diff --git a/src/app/model/picker-model.ts b/src/app/model/picker-model.ts index 2ee4814..671fff0 100644 --- a/src/app/model/picker-model.ts +++ b/src/app/model/picker-model.ts @@ -14,7 +14,7 @@ export interface ShipmentBins { export interface FEndUpdateInventoryItem { index: number isCorrect: boolean - shipmentBinNr_Ist: number + shipmentBinNrIst: number } export interface Picklist { -- GitLab