Skip to content

Commit

Permalink
show delay in broadcast manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 20, 2024
1 parent 1dd521c commit b8f0650
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions ui/analyse/src/study/relay/relayManagerView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,17 @@ function stateOn(ctrl: RelayCtrl) {
'div.state.on.clickable',
{ hook: bind('click', _ => ctrl.setSync(false)), attrs: dataIcon(licon.ChasingArrows) },
[
h(
'div',
url
? [
sync.delay ? `Connected with ${sync.delay}s delay` : 'Connected to source',
h('br'),
url.replace(/https?:\/\//, ''),
]
h('div', [
'Connected ',
sync?.delay ? `with ${sync.delay}s delay ` : null,
...(url
? ['to source', h('br'), url.replace(/https?:\/\//, '')]
: ids
? ['Connected to', h('br'), ids.length, ' game(s)']
? ['to', h('br'), ids.length, ' game(s)']
: urls
? ['Connected to', h('br'), urls.length, ' urls']
: [],
),
? ['to', h('br'), urls.length, ' sources']
: []),
]),
],
);
}
Expand Down

0 comments on commit b8f0650

Please sign in to comment.