diff --git a/src/components/Profile.vue b/src/components/Profile.vue index 2263b06..47fe1ff 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -9,7 +9,7 @@ class="text-3xl font-bold whitespace-nowrap" v-text="(state.firstname || '') + ' ' + (state.middlename || '') + ' ' + (state.lastname || '')" >

-

Musterfirma > PR

+

{{ state.group }}

-
+
@@ -116,7 +116,7 @@
-
+
@@ -159,7 +159,7 @@
-
+
coming soon...
@@ -182,9 +182,10 @@ const state = reactive({ firstname: "", middlename: "", lastname: "", - scans: [] + scans: [], + group: "", + activetab: "profile", }) -let activetab = ref("profile"); const toast = useToast(); const token = location.hash.substr(1).split('&')[0].split('=')[1]; axios.get(`${config.baseurl}api/runners/me/${token}`) @@ -194,6 +195,7 @@ axios.get(`${config.baseurl}api/runners/me/${token}`) state.firstname = data.firstname; state.middlename = data.middlename; state.lastname = data.lastname; + state.group = data.group; }).catch((error) => { toast.error("An error occured while loading your profile data"); }) diff --git a/src/main.js b/src/main.js index 188d3ff..0611093 100644 --- a/src/main.js +++ b/src/main.js @@ -28,7 +28,7 @@ const Privacy = import('./components/Privacy.vue'); const Register = import('./components/Register.vue'); const Profile = () => import('./components/Profile.vue'); // -let routes = [ { path: '/', component: EnvError } ]; +let routes = [ { path: '/:pathMatch(.*)*', component: EnvError } ]; if (typeof config !== 'undefined') { if (config.baseurl && config.documentserver_key) { routes = [