account at tenant

This commit is contained in:
2021-09-09 15:49:49 +02:00
parent b394a16d7e
commit 75120b1d80
7 changed files with 170 additions and 3 deletions

View File

@ -23,6 +23,7 @@ interface DN_Tenancy {
export class TenantDetailsComponent implements OnInit {
tenant: Tenant = NULL_Tenant
tenantId: number
account: Account = NULL_Account
@ -64,6 +65,7 @@ export class TenantDetailsComponent implements OnInit {
try {
const id = +this.route.snapshot.paramMap.get('id')
if (id != 0) {
this.tenantId = id
this.tenant = await this.tenantService.getTenant(id)
this.account = await this.accountService.getAccount(this.tenant.account)
this.getTenancies()