Skip to content

Commit b5eefc2

Browse files
olzzonjstarpl
authored andcommitted
fix: In kiosk mode, rundown page gets stalled if rundown is removed while on the page.
1 parent 9bea15f commit b5eefc2

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

meteor/client/styles/rundownView.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3256,6 +3256,21 @@ svg.icon {
32563256
left: 50%;
32573257
transform: translate(-150%, -50%);
32583258
}
3259+
3260+
> .rundown-view__label {
3261+
position: absolute;
3262+
top: 60%;
3263+
left: 1%;
3264+
right: 0;
3265+
text-align: center;
3266+
font-size: 3em;
3267+
transform: translateY(-50%);
3268+
3269+
> p {
3270+
margin: 20px auto;
3271+
max-width: 1200px;
3272+
}
3273+
}
32593274
}
32603275

32613276
.rundown-view {

meteor/client/ui/RundownView.tsx

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

32593259
render(): JSX.Element {
3260+
const { t } = this.props
32603261
if (!this.props.subsReady) {
32613262
return (
32623263
<div className="rundown-view rundown-view--loading">
3264+
<div className="rundown-view__label">
3265+
<p>
3266+
<Route
3267+
render={({ history }) => (
3268+
<button
3269+
className="btn btn-primary"
3270+
onClick={() => {
3271+
history.push('/rundowns')
3272+
}}
3273+
>
3274+
{t('Return to list')}
3275+
</button>
3276+
)}
3277+
/>
3278+
</p>
3279+
</div>
3280+
32633281
<Spinner />
32643282
</div>
32653283
)

0 commit comments

Comments
 (0)