Skip to content
2 changes: 1 addition & 1 deletion app/eventyay/agenda/templates/agenda/fragment_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<i class="fa fa-calendar"></i> {{ phrases.schedule.schedule }}
</a>
{% endif %}
{% if request.event.display_settings.schedule_display != "list" %}
{% if (schedule or request.event.current_schedule) and request.event.display_settings.schedule_display != "list" %}
<a href="{{ request.event.urls.talks }}" class="header-tab {% if "/talk/" in request.path_info %} active{% endif %}">
<i class="fa fa-comments-o"></i> {{ phrases.schedule.sessions }}
</a>
Expand Down
8 changes: 7 additions & 1 deletion app/eventyay/webapp/src/components/RoomsSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export default {
rooms.videoChat.push(room)
} else if (room.modules.some(module => ['livestream.native', 'livestream.youtube', 'livestream.iframe'].includes(module.type))) {
let session
if (this.$features.enabled('schedule-control')) {
// Only show session information if the schedule is published
if (this.$features.enabled('schedule-control') && this.hasPublishedSchedule) {
session = this.currentSessionPerRoom?.[room.id]?.session
}
const notifications = this.notificationCount(room.modules.find(m => m.type === 'chat.native')?.channel_id)
Expand Down Expand Up @@ -183,6 +184,11 @@ export default {
worldHasPosters() {
return this.rooms.some(room => room.modules.length === 1 && room.modules[0].type === 'poster.native')
},
hasPublishedSchedule() {
// Only show schedule-related items if there's a published schedule
// The schedule is considered published if it has a version (not WIP)
return this.schedule && this.schedule.version
},
},
methods: {
getDMChannelName(channel) {
Expand Down