feat: implement multi-tenancy.service to auth-wrapper component

pull/4956/head
mehmet-erim 5 years ago
parent 5d7c4e7507
commit 70308947b6

@ -1,6 +1,6 @@
<div class="row">
<div class="mx-auto col col-md-5">
<ng-container *ngIf="isMultiTenancyEnabled$ | async">
<ng-container *ngIf="(isMultiTenancyEnabled$ | async) && multiTenancy.isTenantBoxVisible">
<abp-tenant-box *abpReplaceableTemplate="{ componentKey: tenantBoxKey }"></abp-tenant-box>
</ng-container>

@ -1,4 +1,4 @@
import { ConfigState, SubscriptionService } from '@abp/ng.core';
import { ConfigState, SubscriptionService, MultiTenancyService } from '@abp/ng.core';
import { Component, Input, OnInit, TemplateRef } from '@angular/core';
import { Select, Store } from '@ngxs/store';
import { Observable } from 'rxjs';
@ -26,7 +26,11 @@ export class AuthWrapperComponent
tenantBoxKey = eAccountComponents.TenantBox;
constructor(private store: Store, private subscription: SubscriptionService) {}
constructor(
public readonly multiTenancy: MultiTenancyService,
private store: Store,
private subscription: SubscriptionService,
) {}
ngOnInit() {
this.subscription.addOne(

Loading…
Cancel
Save