Add toggle for properties in overview

This commit is contained in:
Felix Linker
2021-01-03 10:17:10 +01:00
parent ab153981c9
commit c3747e4e5e
9 changed files with 145 additions and 21 deletions

View File

@@ -52,7 +52,7 @@ export default class UtilitySlotSection extends SlotSection {
*/
_getSlots() {
let slots = [];
let { ship, currentMenu } = this.props;
let { ship, currentMenu, propsToShow, onPropToggle } = this.props;
let { originSlot, targetSlot } = this.state;
for (let h of ship.getUtilities(undefined, true)) {
@@ -67,6 +67,8 @@ export default class UtilitySlotSection extends SlotSection {
dropClass={this._dropClass(h, originSlot, targetSlot)}
m={h}
enabled={h.enabled ? true : false}
propsToShow={propsToShow}
onPropToggle={onPropToggle}
/>);
}