aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/vlanTagging/form-async/form-async.service.ts
blob: f5a33fe4dc476d7f804244e3efe78f19a5a51e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import {Injectable} from '@angular/core';
import {Tenant} from "../../shared/models/tenant";

@Injectable()
export class FormAsyncService {
  constructor(){}

  public onTenantSelect(tenants: Tenant[], newValue: string) {
    let tenantTemp: Tenant[] = tenants.filter(tenant => tenant.id == newValue);
    return tenantTemp[0] && tenantTemp[0].cloudOwner;
  }
}