Skip to content

Commit

Permalink
add relay group links
Browse files Browse the repository at this point in the history
  • Loading branch information
allanjoseph98 committed Jan 28, 2025
1 parent a46263e commit b91a760
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/analyse/src/plugins/analyse.nvui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,18 @@ const onInsertHandler = (callback: () => void, el: HTMLElement) => {

function studyDetails(ctrl: AnalyseController): MaybeVNode {
const study = ctrl.study;
const relayGroups = study?.relay?.data.group;
return (
study &&
h('div.study-details', [
h('h2', 'Study details'),
h('span', `Title: ${study.data.name}. By: ${study.data.ownerId}`),
h('br'),
relayGroups &&
h('div.relayGroups', [
h('h2', 'Relay groups'),
...relayGroups.tours.map(tour => h('a', { attrs: { href: `/broadcast/-/${tour.id}` } }, tour.name)),
]),
h('label.chapters', [
h('h2', 'Current chapter:'),
h(
Expand Down

0 comments on commit b91a760

Please sign in to comment.