feat: Display or Hide Tenant selector in Login view

This commit is contained in:
Jose Alberto Hernandez
2024-05-24 14:49:58 -06:00
committed by Jose Alberto Hernandez
parent e20a672518
commit 4972007e6d
7 changed files with 25 additions and 1 deletions
+12
View File
@@ -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? [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/openMF/web-app/issues)
+1 -1
View File
@@ -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>
+4
View File
@@ -77,4 +77,8 @@ export class LoginComponent implements OnInit, OnDestroy {
window.location.reload();
}
displayTenantSelector(): boolean {
return environment.displayTenantSelector === 'false' ? false : true;
}
}
+3
View File
@@ -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'] = '';
+3
View File
@@ -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';
+1
View File
@@ -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
+1
View File
@@ -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