|
@@ -1,4 +1,6 @@
|
|
|
import { defineStore } from 'pinia'
|
|
|
+import { ConcernementsStore as concrnmtStore } from '@/stores/concernements'
|
|
|
+
|
|
|
import REST from '@api/rest-axios'
|
|
|
import JSONAPI from '@api/json-axios'
|
|
|
import qs from 'querystring-es3'
|
|
@@ -67,6 +69,9 @@ export const UserStore = defineStore({
|
|
|
this.logout_token = response.data.logout_token
|
|
|
this.getUser().then(userdata => {
|
|
|
console.log('User Loggedin')
|
|
|
+ // todo reload concernements
|
|
|
+ // concrnmtStore().reloadConcernements(); // INFO would be good but to much complicated for now, just reload the page
|
|
|
+ window.location.reload();
|
|
|
resolve()
|
|
|
})
|
|
|
} else {
|
|
@@ -175,6 +180,9 @@ export const UserStore = defineStore({
|
|
|
this.isloggedin = false
|
|
|
this.roles = []
|
|
|
// window.location.reload(true) ???
|
|
|
+ // todo reload concernements
|
|
|
+ // concrnmtStore().reloadConcernements(); // INFO would be good but to much complicated for now, just reload the page
|
|
|
+ window.location.reload();
|
|
|
resolve()
|
|
|
})
|
|
|
.catch(error => {
|