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

@@ -316,7 +316,6 @@ export default class OutfittingPage extends Page {
canRename = buildName && newBuildName && buildName != newBuildName,
canReload = savedCode && canSave,
hStr = ship.getHardpointsString() + '.' + ship.getModificationsString(),
sStr = ship.getStandardString() + '.' + ship.getModificationsString(),
iStr = ship.getInternalString() + '.' + ship.getModificationsString();
return (
@@ -350,12 +349,12 @@ export default class OutfittingPage extends Page {
</div>
<ShipSummaryTable ship={ship} code={code} />
<StandardSlotSection ship={ship} code={sStr} onChange={shipUpdated} currentMenu={menu} />
<StandardSlotSection ship={ship} code={code} onChange={shipUpdated} currentMenu={menu} />
<InternalSlotSection ship={ship} code={iStr} onChange={shipUpdated} currentMenu={menu} />
<HardpointsSlotSection ship={ship} code={hStr} onChange={shipUpdated} currentMenu={menu} />
<UtilitySlotSection ship={ship} code={hStr} onChange={shipUpdated} currentMenu={menu} />
<PowerManagement ship={ship} code={code} onChange={shipUpdated} />
<CostSection ship={ship} buildName={buildName} code={sStr + hStr + iStr} />
<CostSection ship={ship} buildName={buildName} code={code} />
<div className='group third'>
<OffenceSummary ship={ship} code={code}/>