Login form with Tenant dropdown menu
This commit is contained in:
@@ -63,6 +63,22 @@ export class SettingsService {
|
||||
localStorage.setItem('mifosXServers', JSON.stringify(list));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets Tenant Identifiers list setting throughout the app.
|
||||
* @param {string[]} list List of default tenants
|
||||
*/
|
||||
setTenantIdentifiers(list: string[]) {
|
||||
localStorage.setItem('mifosXTenantIdentifiers', JSON.stringify(list));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets Tenant Identifier setting throughout the app.
|
||||
* @param {string} Tenant Identifier
|
||||
*/
|
||||
setTenantIdentifier(tenantIdentifier: string) {
|
||||
localStorage.setItem('mifosXTenantIdentifier', tenantIdentifier);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets server Date setting for max datepicker, default today
|
||||
* @param {string} date
|
||||
@@ -141,6 +157,20 @@ export class SettingsService {
|
||||
return this.maxAllowedDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns list of Tenant Identifiers
|
||||
*/
|
||||
get tenantIdentifiers(): any {
|
||||
return JSON.parse(localStorage.getItem('mifosXTenantIdentifiers'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Tenant Identifier
|
||||
*/
|
||||
get tenantIdentifier(): string {
|
||||
return localStorage.getItem('mifosXTenantIdentifier');
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate If the enable_business_date configuration is enabled or disabled.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user