Skip to content

Commit

Permalink
#452: Child platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Apr 6, 2022
1 parent 0f5edd9 commit 84811a4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/views/Platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,35 @@ class Platform extends React.Component {
</div>
</div>
<br />
{(this.state.item.childPlatforms && (this.state.item.childPlatforms.length > 0)) &&
<div>
<h2>Child Platforms</h2>
<div className='row'>
<div className='col-md-12'>
<Table
className='detail-table'
columns={[{
title: 'Name',
dataIndex: 'name',
key: 'name',
width: 700
}]}
data={this.state.item.childPlatforms
? this.state.item.childPlatforms.map(row => ({
key: row.id,
name: row.name
}))
: []}
onRow={(record) => ({
onClick () { window.location.href = '/Platform/' + record.key }
})}
tableLayout='auto'
rowClassName='link'
/>
</div>
</div>
<br />
</div>}
{this.state.item.parentPlatform &&
<div className='row'>
<div className='col-md-12'>
Expand Down

0 comments on commit 84811a4

Please sign in to comment.