feat: Display or Hide Tenant selector in Login view
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
e20a672518
commit
4972007e6d
@@ -198,6 +198,18 @@ MIFOS_WAIT_TIME_FOR_CATCHUP=30
|
||||
```
|
||||
|
||||
|
||||
Setting for display or hide the Tenant selector in the Login view (mainly for Production environments and for security reasons), Default true
|
||||
```
|
||||
MIFOS_DISPLAY_TENANT_SELECTOR=false
|
||||
```
|
||||
|
||||
|
||||
Setting for display or hide the Backend info (url) in the footer part (mainly for security reasons), Default true
|
||||
```
|
||||
MIFOS_DISPLAY_BACKEND_INFO=false
|
||||
```
|
||||
|
||||
|
||||
For more information look the env.sample file in the root directory of the project
|
||||
|
||||
## Want to help? [](https://github.com/openMF/web-app/issues)
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Tenant Identifier Name -->
|
||||
<div fxLayout="row" fxLayoutAlign="center center" fxFlex="1 0 auto" *ngIf="!environment.production">
|
||||
<div fxLayout="row" fxLayoutAlign="center center" fxFlex="1 0 auto" *ngIf="displayTenantSelector()">
|
||||
<mifosx-tenant-selector></mifosx-tenant-selector>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -77,4 +77,8 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
displayTenantSelector(): boolean {
|
||||
return environment.displayTenantSelector === 'false' ? false : true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// Display or not the BackEnd Info
|
||||
window['env']['displayBackEndInfo'] = '';
|
||||
|
||||
// Display or not the Tenant Selector
|
||||
window['env']['displayTenantSelector'] = '';
|
||||
|
||||
// Time in seconds for Notifications, default 60 seconds
|
||||
window['env']['waitTimeForNotifications'] = '';
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
// Display or not the BackEnd Info
|
||||
window['env']['displayBackEndInfo'] = '$MIFOS_DISPLAY_BACKEND_INFO';
|
||||
|
||||
// Display or not the Tenant Selector
|
||||
window['env']['displayTenantSelector'] = '$MIFOS_DISPLAY_TENANT_SELECTOR';
|
||||
|
||||
// Time in seconds for Notifications, default 60 seconds
|
||||
window['env']['waitTimeForNotifications'] = '$MIFOS_WAIT_TIME_FOR_NOTIFICATIONS';
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ export const environment = {
|
||||
defaultCharDelimiter: window['env']['defaultCharDelimiter'] || ',',
|
||||
|
||||
displayBackEndInfo: window['env']['displayBackEndInfo'] || 'true',
|
||||
displayTenantSelector: window['env']['displayTenantSelector'] || 'true',
|
||||
// Time in seconds, default 60 seconds
|
||||
waitTimeForNotifications: window['env']['waitTimeForNotifications'] || 60,
|
||||
// Time in seconds, default 30 seconds
|
||||
|
||||
@@ -39,6 +39,7 @@ export const environment = {
|
||||
defaultCharDelimiter: window['env']['defaultCharDelimiter'] || ',',
|
||||
|
||||
displayBackEndInfo: window['env']['displayBackEndInfo'] || 'true',
|
||||
displayTenantSelector: window['env']['displayTenantSelector'] || 'true',
|
||||
// Time in seconds, default 60 seconds
|
||||
waitTimeForNotifications: window['env']['waitTimeForNotifications'] || 60,
|
||||
// Time in seconds, default 30 seconds
|
||||
|
||||
Reference in New Issue
Block a user