Ensure that standard slots are repainted when any component changes

This commit is contained in:
Cmdr McDonald
2017-02-08 10:09:30 +00:00
parent 9e5efe50dc
commit 24849cee08
3 changed files with 7 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ export default class SlotSection extends TranslatedComponent {
* @param {Object} m Selected module
*/
_selectModule(slot, m) {
this.props.ship.use(slot, m);
this.props.ship.use(slot, m, false);
this.props.onChange();
this._close();
}
@@ -123,7 +123,7 @@ export default class SlotSection extends TranslatedComponent {
// We want to copy the module in to the target slot
if (targetSlot && canMount(this.props.ship, targetSlot, m.grp, m.class)) {
const mCopy = m.clone();
this.props.ship.use(targetSlot, mCopy);
this.props.ship.use(targetSlot, mCopy, false);
this.props.onChange();
}
} else {