Skip to content

Commit

Permalink
open broadcast embed on Lichess
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Aug 2, 2024
1 parent 5f44c08 commit 13039ad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ui/analyse/src/study/relay/relayTourView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,17 @@ const makeTabs = (ctrl: AnalyseCtrl) => {
makeTab('boards', 'Boards'),
relay.teams && makeTab('teams', 'Teams'),
relay.data.tour.leaderboard ? makeTab('leaderboard', 'Leaderboard') : undefined,
study.members.myMember() && relay.data.tour.tier ? makeTab('stats', 'Stats') : undefined,
study.members.myMember() && relay.data.tour.tier
? makeTab('stats', 'Stats')
: ctrl.isEmbed
? h(
'a.relay-tour__tabs--open.text',
{
attrs: { href: relay.tourPath(), target: '_blank', 'data-icon': licon.Expand },
},
'Open in Lichess',
)
: makeTab('stats', 'Stats'),
]);
};

Expand Down

0 comments on commit 13039ad

Please sign in to comment.