1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-23 15:51:02 +00:00

room-info: show "backstage" if no room name was supplied

This commit is contained in:
Franzi 2023-02-28 09:54:22 +01:00
parent de8065cf22
commit 16350548f5
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -12,6 +12,14 @@ function update_room_info() {
return return
} }
if (!room_name) {
$('#broadcast_tools_room_info_title').text(event_info['name']);
$('#broadcast_tools_room_info_speaker').text('Backstage');
$('#broadcast_tools_room_info_qr').text('');
$('#broadcast_tools_room_info').css('background-color', event_info['color']);
return
}
if (!schedule) { if (!schedule) {
$('#broadcast_tools_room_info_speaker').text('Waiting for schedule ...') $('#broadcast_tools_room_info_speaker').text('Waiting for schedule ...')
return return