Login form with Tenant dropdown menu

This commit is contained in:
Jose Alberto Hernandez
2022-11-29 22:18:54 -06:00
parent 8f1c17acdf
commit 7275ba8dda
25 changed files with 189 additions and 20 deletions
+9 -3
View File
@@ -8,6 +8,7 @@ import { Router } from '@angular/router';
import { AuthenticationService } from 'app/core/authentication/authentication.service';
import { ChangePasswordDialogComponent } from 'app/shared/change-password-dialog/change-password-dialog.component';
import { UserService } from 'app/self-service/users/user.service';
import { SettingsService } from 'app/settings/settings.service';
/**
* Profile Component.
@@ -36,9 +37,10 @@ export class ProfileComponent implements OnInit {
* @param {MatDialog} dialog Mat Dialog
*/
constructor(private authenticationService: AuthenticationService,
private userService: UserService,
private router: Router,
public dialog: MatDialog) {
private settingsService: SettingsService,
private userService: UserService,
private router: Router,
public dialog: MatDialog) {
this.profileData = authenticationService.getCredentials();
}
@@ -66,4 +68,8 @@ export class ProfileComponent implements OnInit {
});
}
get tenantIdentifier(): string {
return this.settingsService.tenantIdentifier || 'default';
}
}