inventory-slots #49
@ -1,5 +1,5 @@
 | 
				
			|||||||
<mat-form-field class="example-full-width">
 | 
					<mat-form-field class="example-full-width">
 | 
				
			||||||
  <mat-label>Number</mat-label>
 | 
					  <mat-label>Item Characteristic</mat-label>
 | 
				
			||||||
  <input matInput
 | 
					  <input matInput
 | 
				
			||||||
         aria-label="State"
 | 
					         aria-label="State"
 | 
				
			||||||
         [matAutocomplete]="auto"
 | 
					         [matAutocomplete]="auto"
 | 
				
			||||||
 | 
				
			|||||||
@ -26,7 +26,8 @@
 | 
				
			|||||||
    <th mat-header-cell *matHeaderCellDef></th>
 | 
					    <th mat-header-cell *matHeaderCellDef></th>
 | 
				
			||||||
    <td mat-cell *matCellDef="let slotCharacteristic">
 | 
					    <td mat-cell *matCellDef="let slotCharacteristic">
 | 
				
			||||||
      <button mat-icon-button (click)="finishEditing()" *ngIf="editedCharacteristic === slotCharacteristic"><mat-icon>done</mat-icon></button>
 | 
					      <button mat-icon-button (click)="finishEditing()" *ngIf="editedCharacteristic === slotCharacteristic"><mat-icon>done</mat-icon></button>
 | 
				
			||||||
      <button mat-icon-button *ngIf="editedCharacteristic !== slotCharacteristic" [disabled]="editedCharacteristic != null"><mat-icon>edit</mat-icon></button>
 | 
					      <button mat-icon-button *ngIf="editedCharacteristic !== slotCharacteristic" [disabled]="editedCharacteristic != null"
 | 
				
			||||||
 | 
					              (click)="editSlotCharacteristic(slotCharacteristic)"><mat-icon>edit</mat-icon></button>
 | 
				
			||||||
    </td>
 | 
					    </td>
 | 
				
			||||||
  </ng-container>
 | 
					  </ng-container>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -48,4 +48,8 @@ export class InventorySlotCharacteristicEditorComponent implements OnInit{
 | 
				
			|||||||
  onSelectDecreasingCharacteristic(selectedCharacteristic: ItemGroupCharacteristic, slotCharacteristic: InventoryCharacteristic) {
 | 
					  onSelectDecreasingCharacteristic(selectedCharacteristic: ItemGroupCharacteristic, slotCharacteristic: InventoryCharacteristic) {
 | 
				
			||||||
    slotCharacteristic.decreasingCharacteristic = selectedCharacteristic;
 | 
					    slotCharacteristic.decreasingCharacteristic = selectedCharacteristic;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  editSlotCharacteristic(slotCharacteristic: InventoryCharacteristic) {
 | 
				
			||||||
 | 
					    this.editedCharacteristic = slotCharacteristic;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user