Login view with the support of dark theme

This commit is contained in:
Jose Alberto Hernandez
2024-03-09 00:52:50 -06:00
committed by Jose Alberto Hernandez
parent e232ab2e3a
commit f8bbd270f5
17 changed files with 122 additions and 50 deletions
+11 -1
View File
@@ -13,6 +13,7 @@ import { AlertService } from '../core/alert/alert.service';
/** Environment Imports */
import { environment } from '../../environments/environment';
import { SettingsService } from 'app/settings/settings.service';
/**
* Login component.
@@ -38,7 +39,8 @@ export class LoginComponent implements OnInit, OnDestroy {
* @param {Router} router Router for navigation.
*/
constructor(private alertService: AlertService,
private router: Router) { }
private settingsService: SettingsService,
private router: Router) { }
/**
* Subscribes to alert event of alert service.
@@ -67,4 +69,12 @@ export class LoginComponent implements OnInit, OnDestroy {
this.alert$.unsubscribe();
}
reloadSettings(): void {
this.settingsService.setTenantIdentifier('');
this.settingsService.setTenantIdentifier(environment.fineractPlatformTenantId || 'default');
this.settingsService.setTenantIdentifiers(environment.fineractPlatformTenantIds.split(','));
this.settingsService.setServers(environment.baseApiUrls.split(','));
window.location.reload();
}
}