Skip to content

Commit 298c0fd

Browse files
committed
fix: In kiosk mode, rundown page gets stalled if rundown is removed while on the page.
1 parent 8c154af commit 298c0fd

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

packages/webui/src/client/styles/rundownView.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3375,6 +3375,21 @@ svg.icon {
33753375
left: 50%;
33763376
transform: translate(-150%, -50%);
33773377
}
3378+
3379+
> .rundown-view__label {
3380+
position: absolute;
3381+
top: 60%;
3382+
left: 1%;
3383+
right: 0;
3384+
text-align: center;
3385+
font-size: 3em;
3386+
transform: translateY(-50%);
3387+
3388+
> p {
3389+
margin: 20px auto;
3390+
max-width: 1200px;
3391+
}
3392+
}
33783393
}
33793394

33803395
.rundown-view {

packages/webui/src/client/ui/RundownView.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,9 +3281,27 @@ const RundownViewContent = translateWithTracker<IPropsWithReady, IState, ITracke
32813281
}
32823282

32833283
render(): JSX.Element {
3284+
const { t } = this.props
32843285
if (!this.props.subsReady) {
32853286
return (
32863287
<div className="rundown-view rundown-view--loading">
3288+
<div className="rundown-view__label">
3289+
<p>
3290+
<Route
3291+
render={({ history }) => (
3292+
<button
3293+
className="btn btn-primary"
3294+
onClick={() => {
3295+
history.push('/rundowns')
3296+
}}
3297+
>
3298+
{t('Return to list')}
3299+
</button>
3300+
)}
3301+
/>
3302+
</p>
3303+
</div>
3304+
32873305
<Spinner />
32883306
</div>
32893307
)

0 commit comments

Comments
 (0)