diff --git a/application/views/Studentenverwaltung.php b/application/views/Studentenverwaltung.php index 01e611657..aa4891e9a 100644 --- a/application/views/Studentenverwaltung.php +++ b/application/views/Studentenverwaltung.php @@ -26,8 +26,8 @@ #'vendor/npm-asset/primevue/tree/tree.min.js', #'vendor/npm-asset/primevue/toast/toast.min.js' ], - 'customJSModules' => [ - 'public/js/apps/Studentenverwaltung.js' + 'fhcApps' => [ + 'Studentenverwaltung' ] ); diff --git a/public/js/apps/Studentenverwaltung.js b/public/js/apps/Studentenverwaltung.js index 5eda16dd6..50763ad6f 100644 --- a/public/js/apps/Studentenverwaltung.js +++ b/public/js/apps/Studentenverwaltung.js @@ -168,10 +168,14 @@ router.afterEach((to, from, failure) => { document.title = title; }); +FhcApps.router.makeExtendable(router); + const app = Vue.createApp({ name: 'StudentenverwaltungApp' }); +FhcApps.makeExtendable(app); + app .use(router) .use(primevue.config.default, {