mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Add toggle for properties in overview
This commit is contained in:
@@ -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}
|
||||
/>);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user