inventory-slots #49
@ -5,7 +5,7 @@
|
||||
</mat-expansion-panel-header>
|
||||
<div class="panel-actions">
|
||||
<button mat-raised-button color="primary" (click)="renameInventorySlot(slot)">Rename</button>
|
||||
<button mat-raised-button color="warn">Delete</button>
|
||||
<button mat-raised-button color="warn" (click)="deleteInventorySlot(slot)">Delete</button>
|
||||
</div>
|
||||
</mat-expansion-panel>
|
||||
<button mat-stroked-button class="add-btn" (click)="addInventorySlot()">Add Inventory-Slot</button>
|
||||
|
@ -37,5 +37,7 @@ export class InventorySlotEditorComponent {
|
||||
})
|
||||
}
|
||||
|
||||
protected readonly indexedDB = indexedDB;
|
||||
deleteInventorySlot(inventorySlot: InventorySlot) {
|
||||
this.character!.removeInventorySlot(inventorySlot)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user