Skip to content

Commit

Permalink
Only show me button if joined
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Sep 4, 2017
1 parent 2c8c6f0 commit 1a9e99a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/js/ui/tournament/detail/tournamentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,14 @@ function tournamentLeaderboard(ctrl: TournamentCtrl) {
<span class="pageInfo"> {firstPlayer + '-' + lastPlayer + ' / ' + data.nbPlayers} </span>
{renderNavButton('X', !ctrl.isLoadingPage && forwardEnabled, ctrl.next)}
{renderNavButton('V', !ctrl.isLoadingPage && forwardEnabled, ctrl.last)}
<button className={'navigationButton tournament-me' + (ctrl.focusOnMe ? ' activated' : '')}
data-icon="7"
oncreate={helper.ontap(ctrl.toggleFocusOnMe)}
>
<span>Me</span>
</button>
{data.me ?
<button className={'navigationButton tournament-me' + (ctrl.focusOnMe ? ' activated' : '')}
data-icon="7"
oncreate={helper.ontap(ctrl.toggleFocusOnMe)}
>
<span>Me</span>
</button> : null
}
</div>
</div>
)
Expand Down

0 comments on commit 1a9e99a

Please sign in to comment.