Skip to content

Commit

Permalink
Relay: Show mensage in board tab if do not have boards
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGlorias committed Oct 16, 2024
1 parent 58df7da commit 24bf52b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ui/analyse/src/study/relay/relayTourView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,23 @@ const roundSelect = (relay: RelayCtrl, study: StudyCtrl) => {

const games = (ctx: RelayViewContext) => [
...header(ctx),
ctx.study.chapters.list.looksNew() ? undefined : multiBoardView(ctx.study.multiBoard, ctx.study),
ctx.study.chapters.list.looksNew()
? h(
'div.relay-tour__note',
h('div', [
h('div', 'No boards yet. These will appear once games are uploaded.'),
ctx.study.members.myMember() &&
h('small', [
'Boards can be loaded with a source or via the ',
h(
'a',
{ attrs: { href: 'https://lichess.org/broadcast/app', target: '_blank' } },
'Broadcaster App',
),
]),
]),
)
: multiBoardView(ctx.study.multiBoard, ctx.study),
!ctx.ctrl.isEmbed && showSource(ctx.relay.data),
];

Expand Down

0 comments on commit 24bf52b

Please sign in to comment.