inventory-items-2 #44

Closed
sebastian wants to merge 32 commits from inventory-items-2 into inventory
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 34c139eecf - Show all commits

View File

@ -1,4 +1,4 @@
<table mat-table [dataSource]="datasource" class="mat-elevation-z8"> <table mat-table [dataSource]="findCharacteristicValuesByItemgroup(inheritedItemgroup!)" class="mat-elevation-z8">
<ng-container matColumnDef="characteristic"> <ng-container matColumnDef="characteristic">
<th mat-header-cell *matHeaderCellDef>Characteristic</th> <th mat-header-cell *matHeaderCellDef>Characteristic</th>
<td mat-cell *matCellDef="let characteristicValue">{{characteristicValue.key.characteristicName}}</td> <td mat-cell *matCellDef="let characteristicValue">{{characteristicValue.key.characteristicName}}</td>

View File

@ -24,7 +24,7 @@ export class InheritedItemCharacteristicEditorComponent implements OnInit{
} }
private findCharacteristicValuesByItemgroup(itemGroup: ItemGroup): ItemgroupCharacteristicValue[] { findCharacteristicValuesByItemgroup(itemGroup: ItemGroup): ItemgroupCharacteristicValue[] {
const result = this.item?.itemCharacteristicValues.filter(value => value.key.itemgroup.componentName === itemGroup.componentName); const result = this.item?.itemCharacteristicValues.filter(value => value.key.itemgroup.componentName === itemGroup.componentName);
if(result != undefined) { if(result != undefined) {
return result; return result;