Write the name of the tournament owner in the tournament view
This commit is contained in:
parent
115df26572
commit
0eb4df58cf
|
|
@ -35,6 +35,7 @@ function Tournament(props) {
|
||||||
{props.tournament.isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'}
|
{props.tournament.isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'}
|
||||||
</ListGroupItem>
|
</ListGroupItem>
|
||||||
<ListGroupItem>Turnier-Code: <b>{props.tournament.code}</b></ListGroupItem>
|
<ListGroupItem>Turnier-Code: <b>{props.tournament.code}</b></ListGroupItem>
|
||||||
|
<ListGroupItem>von <b>{props.tournament.ownerUsername}</b></ListGroupItem>
|
||||||
</ListGroup>
|
</ListGroup>
|
||||||
</Container>
|
</Container>
|
||||||
<div className='stages pt-5'>
|
<div className='stages pt-5'>
|
||||||
|
|
@ -310,6 +311,7 @@ function convertTournament(apiTournament) {
|
||||||
description: apiTournament.description,
|
description: apiTournament.description,
|
||||||
name: apiTournament.name,
|
name: apiTournament.name,
|
||||||
public: apiTournament.public,
|
public: apiTournament.public,
|
||||||
|
ownerUsername: apiTournament.owner_username,
|
||||||
groupStage: groupStage,
|
groupStage: groupStage,
|
||||||
playoffStages: playoffStages
|
playoffStages: playoffStages
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue