mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-07 05:49:27 +00:00
Merge branch 'cis40_2026-05_ma_rc_routerlink' into demo-cis40
This commit is contained in:
@@ -9,6 +9,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isRouterHandled() {
|
||||
let isrouterhandled = this.$route.matched.length > 0;
|
||||
return isrouterhandled;
|
||||
},
|
||||
isCompatLink() {
|
||||
if(this.href === null) {
|
||||
return false;
|
||||
@@ -20,7 +24,7 @@ export default {
|
||||
}
|
||||
},
|
||||
template: `
|
||||
<router-link v-if="this.isCompatLink()"
|
||||
<router-link v-if="this.isRouterHandled() && this.isCompatLink()"
|
||||
:to="this.calcCompatRouterLink()"
|
||||
>
|
||||
<slot></slot>
|
||||
|
||||
@@ -252,6 +252,9 @@ const router = VueRouter.createRouter({
|
||||
component: FhcDashboard,
|
||||
props: {dashboard: 'CIS'},
|
||||
},
|
||||
/*
|
||||
* TODO(ma0080): 2026-07-06: commented out => check if needed
|
||||
*
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'Fallback',
|
||||
@@ -266,6 +269,7 @@ const router = VueRouter.createRouter({
|
||||
};
|
||||
},
|
||||
},
|
||||
*/
|
||||
{
|
||||
path: `/Cis/Zeitsperren`,
|
||||
name: 'Zeitsperren',
|
||||
|
||||
Reference in New Issue
Block a user