|
@@ -125,7 +125,8 @@ export class WeaponTableComponent {
|
|
this.deleteWeapon(index);
|
|
this.deleteWeapon(index);
|
|
} else if (result.state === 'update') {
|
|
} else if (result.state === 'update') {
|
|
this.openModal(true, index);
|
|
this.openModal(true, index);
|
|
- } else resultSubscription.unsubscribe();
|
|
|
|
|
|
+ }
|
|
|
|
+ resultSubscription.unsubscribe();
|
|
},
|
|
},
|
|
);
|
|
);
|
|
}
|
|
}
|
|
@@ -151,6 +152,9 @@ export class WeaponTableComponent {
|
|
}
|
|
}
|
|
|
|
|
|
public updateWeapon(weapon: Weapon, index: number): void {
|
|
public updateWeapon(weapon: Weapon, index: number): void {
|
|
|
|
+ console.warn('updateWeapon: ', weapon);
|
|
|
|
+ console.warn('index: ', index);
|
|
|
|
+
|
|
this.weapons[index] = weapon;
|
|
this.weapons[index] = weapon;
|
|
this.calculateSingleDamageModifier(index);
|
|
this.calculateSingleDamageModifier(index);
|
|
this.updateWeaponInDatabase();
|
|
this.updateWeaponInDatabase();
|