Project

General

Profile

« Previous | Next » 

Revision 57644

[Monitor Dashboard]: Add form builder for edit indicator

View differences:

stakeholder.service.ts
17 17
  }
18 18

  
19 19
  getStakeholder(url: string, alias:string): Observable<Stakeholder> {
20
    // return new BehaviorSubject<Stakeholder>(Stakeholder.createECStakeholder()).asObservable();
21
    return this.http.get<Stakeholder>(url + '/stakeholder/' + encodeURIComponent(alias)).pipe(map(stakeholder => {
22
      return this.formalizeStakeholder([stakeholder])[0];
23
    }));
20
    return new BehaviorSubject<Stakeholder>(Stakeholder.createECStakeholder()).asObservable();
21
    // return this.http.get<Stakeholder>(url + '/stakeholder/' + encodeURIComponent(alias)).pipe(map(stakeholder => {
22
    //   return this.formalizeStakeholder([stakeholder])[0];
23
    // }));
24 24
  }
25 25

  
26 26
  getAllStakeholders(url: string, type: string = null): Observable<Stakeholder[]> {

Also available in: Unified diff