mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
some more fixes from eslint
This commit is contained in:
@@ -35,7 +35,7 @@ router.afterEach( ( to, from ) => {
|
|||||||
let UserAccountPages = [ 'account' ];
|
let UserAccountPages = [ 'account' ];
|
||||||
|
|
||||||
|
|
||||||
router.beforeEach( ( to, from ) => {
|
router.beforeEach( ( to ) => {
|
||||||
let userStore = useUserStore();
|
let userStore = useUserStore();
|
||||||
let isUserAuthenticated = userStore.getUserAuthenticated;
|
let isUserAuthenticated = userStore.getUserAuthenticated;
|
||||||
let isAdminAuthenticated = userStore.getAdminAuthenticated;
|
let isAdminAuthenticated = userStore.getAdminAuthenticated;
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
logout() {
|
logout() {
|
||||||
fetch( '/user/logout' ).then( res => {
|
fetch( '/user/logout' ).then( () => {
|
||||||
this.$router.push( '/login' );
|
this.$router.push( '/login' );
|
||||||
this.userStore.setUserAuth( false );
|
this.userStore.setUserAuth( false );
|
||||||
} );
|
} );
|
||||||
|
|||||||
@@ -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.createNotification( 'Connected to status service', 5, 'ok', 'normal' );
|
||||||
self.$refs.notification.cancelNotification( startNotification );
|
self.$refs.notification.cancelNotification( startNotification );
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user