Add branding assets for TIS tenant with logo and login image

This commit is contained in:
2026-05-11 13:36:06 +03:30
parent 13c791d86f
commit 8e1a021eec
32 changed files with 430 additions and 309 deletions
+23 -23
View File
@@ -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() {