diff --git a/src/webapp/main/src/router/index.js b/src/webapp/main/src/router/index.js index 1580785..c168681 100644 --- a/src/webapp/main/src/router/index.js +++ b/src/webapp/main/src/router/index.js @@ -35,7 +35,7 @@ router.afterEach( ( to, from ) => { let UserAccountPages = [ 'account' ]; -router.beforeEach( ( to, from ) => { +router.beforeEach( ( to ) => { let userStore = useUserStore(); let isUserAuthenticated = userStore.getUserAuthenticated; let isAdminAuthenticated = userStore.getAdminAuthenticated; diff --git a/src/webapp/main/src/views/user/AccountView.vue b/src/webapp/main/src/views/user/AccountView.vue index aae6c89..be0c3b0 100644 --- a/src/webapp/main/src/views/user/AccountView.vue +++ b/src/webapp/main/src/views/user/AccountView.vue @@ -130,7 +130,7 @@ export default { }, methods: { logout() { - fetch( '/user/logout' ).then( res => { + fetch( '/user/logout' ).then( () => { this.$router.push( '/login' ); this.userStore.setUserAuth( false ); } ); diff --git a/src/webapp/main/src/views/user/TwoFA.vue b/src/webapp/main/src/views/user/TwoFA.vue index 9d8c993..0322196 100644 --- a/src/webapp/main/src/views/user/TwoFA.vue +++ b/src/webapp/main/src/views/user/TwoFA.vue @@ -48,7 +48,7 @@ export default { } }; - source.onopen = e => { + source.onopen = () => { self.$refs.notification.createNotification( 'Connected to status service', 5, 'ok', 'normal' ); self.$refs.notification.cancelNotification( startNotification ); };