Project

General

Profile

« Previous | Next » 

Revision 62550

Added by John Balasis over 1 year ago

changes for interface update form and functionality

View differences:

repository.service.ts
46 46
    return this.httpClient.post<RepositoryInterface>(url, newInterface, headerOptions);
47 47
  }
48 48

  
49
  updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface): Observable<RepositoryInterface> {
49
  updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface, desiredCompatibilityLevel?: string): Observable<RepositoryInterface> {
50 50
    let url;
51 51
    comment = interfaceInfo.comments; // temp fix for emailing comment
52 52
    if (comment == null || comment === '') {
53
      url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}`;
53
      url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}$desiredCompatibilityLevel=${desiredCompatibilityLevel}`;
54 54
    } else {
55
      url  = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}&comment=${comment}`;
55
      url  = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}&comment=${comment}$desiredCompatibilityLevel=${desiredCompatibilityLevel}`;
56 56
    }
57 57
    console.log(`knocking on: ${url}`);
58 58
    console.log(`sending ${JSON.stringify(interfaceInfo)}`);

Also available in: Unified diff