Refactor AreaTabs component to update product area identifiers and visibility settings
- Changed product area IDs for 'experimenta' and 'makerspace' to simplify navigation. - Updated visibility settings for areas to ensure 'experimenta' and 'labs' are now visible. - Adjusted logic in computed property to reflect new area IDs for improved routing consistency.
This commit is contained in:
@@ -19,7 +19,7 @@ const areas: ProductArea[] = [
|
|||||||
label: 'experimenta Jahreskarten',
|
label: 'experimenta Jahreskarten',
|
||||||
icon: Sparkles,
|
icon: Sparkles,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
visible: false,
|
visible: true,
|
||||||
route: '/experimenta',
|
route: '/experimenta',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ const areas: ProductArea[] = [
|
|||||||
label: 'Labore',
|
label: 'Labore',
|
||||||
icon: FlaskConical,
|
icon: FlaskConical,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
visible: false,
|
visible: true,
|
||||||
badge: 'Demnächst',
|
badge: 'Demnächst',
|
||||||
route: '/labs',
|
route: '/labs',
|
||||||
},
|
},
|
||||||
@@ -46,13 +46,13 @@ const route = useRoute()
|
|||||||
const currentArea = computed(() => {
|
const currentArea = computed(() => {
|
||||||
// Determine current area based on route
|
// Determine current area based on route
|
||||||
if (route.path.startsWith('/products') || route.path === '/') {
|
if (route.path.startsWith('/products') || route.path === '/') {
|
||||||
return 'makerspace'
|
return 'makerspace-annual-passes'
|
||||||
} else if (route.path.startsWith('/labs')) {
|
} else if (route.path.startsWith('/labs')) {
|
||||||
return 'labs'
|
return 'labs'
|
||||||
} else if (route.path.startsWith('/experimenta')) {
|
} else if (route.path.startsWith('/experimenta')) {
|
||||||
return 'experimenta'
|
return 'experimenta-annual-passes'
|
||||||
}
|
}
|
||||||
return 'makerspace'
|
return 'makerspace-annual-passes'
|
||||||
})
|
})
|
||||||
|
|
||||||
function navigateToArea(area: ProductArea) {
|
function navigateToArea(area: ProductArea) {
|
||||||
|
|||||||
Reference in New Issue
Block a user