Add branding assets for TIS tenant with logo and login image
This commit is contained in:
@@ -137,29 +137,29 @@ export class AppLayout {
|
||||
this.layoutService.topbarCenterSlot$.subscribe((tpl) => (this.topBarCenterAction = tpl));
|
||||
this.layoutService.topbarEndSlot$.subscribe((tpl) => (this.topBarEndAction = tpl));
|
||||
|
||||
if (window.location.pathname === '/') {
|
||||
if (!this.authService.currentAccount()) {
|
||||
this.router.navigateByUrl('auth');
|
||||
}
|
||||
switch (this.authService.currentAccount()?.type) {
|
||||
case 'ADMIN':
|
||||
this.router.navigateByUrl('super_admin');
|
||||
break;
|
||||
case 'CONSUMER':
|
||||
if (this.authService.currentAccount()?.role === 'OWNER')
|
||||
this.router.navigateByUrl('consumer');
|
||||
else {
|
||||
this.router.navigateByUrl('pos');
|
||||
}
|
||||
break;
|
||||
case 'PARTNER':
|
||||
this.router.navigateByUrl('partner');
|
||||
break;
|
||||
case 'PROVIDER':
|
||||
this.router.navigateByUrl('provider');
|
||||
break;
|
||||
}
|
||||
}
|
||||
// if (window.location.pathname === '/') {
|
||||
// if (!this.authService.currentAccount()) {
|
||||
// this.router.navigateByUrl('auth');
|
||||
// }
|
||||
// switch (this.authService.currentAccount()?.type) {
|
||||
// case 'ADMIN':
|
||||
// this.router.navigateByUrl('super_admin');
|
||||
// break;
|
||||
// case 'CONSUMER':
|
||||
// if (this.authService.currentAccount()?.role === 'OWNER')
|
||||
// this.router.navigateByUrl('consumer');
|
||||
// // else {
|
||||
// // this.router.navigateByUrl('pos');
|
||||
// // }
|
||||
// break;
|
||||
// case 'PARTNER':
|
||||
// this.router.navigateByUrl('partner');
|
||||
// break;
|
||||
// case 'PROVIDER':
|
||||
// this.router.navigateByUrl('provider');
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user