feat: Display or Hide Tenant selector in Login view
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
e20a672518
commit
4972007e6d
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user