added jitsi api + improvements

This commit is contained in:
_Bastler
2021-04-16 08:57:53 +02:00
parent 56362da724
commit ffe9e6f5ab
31 changed files with 4682 additions and 3202 deletions
+4 -6
View File
@@ -29,7 +29,7 @@ export class AuthGuard implements CanActivate {
return this.authService.getAuth().then(response => {
return true;
}).catch(function(error) {
return that.router.parseUrl('/unavailable');
return that.router.parseUrl('/unavailable?target=' + state.url);
});
}
}
@@ -44,11 +44,9 @@ export class AuthenticatedGuard implements CanActivate {
const that = this;
return this.authService.getAuth().then((data: any) => {
if(!data.authenticated) {
this.router.navigateByUrl('/login');
return false;
return that.router.parseUrl('/login?target=' + state.url);
}
this.profileService.get(["locale", "darkTheme"]).subscribe((profileFields: any) => {
let updateLocale = false;
let darktheme = 'false';
@@ -76,7 +74,7 @@ export class AuthenticatedGuard implements CanActivate {
return true;
}).catch(function(error) {
return that.router.parseUrl('/unavailable');
return that.router.parseUrl('/unavailable?target=' + state.url);
});
}
}
@@ -96,7 +94,7 @@ export class AnonymousGuard implements CanActivate {
}
return true;
}).catch(function(error) {
return that.router.parseUrl('/unavailable');
return that.router.parseUrl('/unavailable?target=' + state.url);
});
}