main #48
@ -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">
|
||||
<th mat-header-cell *matHeaderCellDef>Characteristic</th>
|
||||
<td mat-cell *matCellDef="let characteristicValue">{{characteristicValue.key.characteristicName}}</td>
|
||||
|
@ -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);
|
||||
if(result != undefined) {
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user