account at tenant
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user