Skip to content

Commit ad82f3f

Browse files
committed
#74 avoid showing schedule tab when skipShowingSchedule feature flag is true
1 parent d50fd28 commit ad82f3f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mobile/src/views/event/_BaseEventPages.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ const { LL } = typesafeI18n()
1919
2020
const tabs = computed(() => {
2121
const confDescriptor = toValue(confDescriptorRef);
22-
return [{
22+
return ([] as Array<{id: string, label: string, url: string, icon: string, selectedIcon: string }>)
23+
.concat(confDescriptor?.features.skipShowingSchedule === true ? []:[{
2324
id: 'schedule', url: `${getResolvedEventRootPathFromSpacedEventIdRef(spacedEventIdRef)}/schedule`, label: LL.value.Schedule(),
2425
icon: '/assets/icons/line/calendar-line.svg',
2526
selectedIcon: '/assets/icons/solid/calendar.svg',
26-
}, {
27+
}]).concat([{
2728
id: 'speakers', url: `${getResolvedEventRootPathFromSpacedEventIdRef(spacedEventIdRef)}/speakers`, label: LL.value.Speakers(),
2829
icon: '/assets/icons/line/megaphone-line.svg',
2930
selectedIcon: '/assets/icons/solid/megaphone.svg',
30-
}].concat(confDescriptor && areFeedbacksEnabled(confDescriptor) ? [{
31+
}]).concat(confDescriptor && areFeedbacksEnabled(confDescriptor) ? [{
3132
id: 'feedbacks', url: `${getResolvedEventRootPathFromSpacedEventIdRef(spacedEventIdRef)}/feedbacks`, label: LL.value.Feedbacks(),
3233
icon: '/assets/icons/line/comments-2-line.svg',
3334
selectedIcon: '/assets/icons/solid/comments-2.svg',

0 commit comments

Comments
 (0)