Revision 62559
Added by John Balasis over 1 year ago
repository.service.ts | ||
---|---|---|
33 | 33 |
|
34 | 34 |
constructor(private httpClient: HttpClient) { } |
35 | 35 |
|
36 |
addInterface(datatype: string, repoId: string, registeredBy: string, comment: string, newInterface: RepositoryInterface, desiredCompatibilityLevel?: string): Observable<RepositoryInterface> { |
|
36 |
addInterface(datatype: string, repoId: string, registeredBy: string, comment: string, |
|
37 |
newInterface: RepositoryInterface, desiredCompatibilityLevel: string): Observable<RepositoryInterface> { |
|
37 | 38 |
let url; |
38 | 39 |
comment = newInterface.comments; // temp fix for emailing comment |
39 | 40 |
if (comment == null || comment === '') { |
... | ... | |
46 | 47 |
return this.httpClient.post<RepositoryInterface>(url, newInterface, headerOptions); |
47 | 48 |
} |
48 | 49 |
|
49 |
updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface, desiredCompatibilityLevel?: string): Observable<RepositoryInterface> { |
|
50 |
updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface, |
|
51 |
desiredCompatibilityLevel?: string): Observable<RepositoryInterface> { |
|
50 | 52 |
let url; |
51 | 53 |
comment = interfaceInfo.comments; // temp fix for emailing comment |
52 | 54 |
if (comment == null || comment === '') { |
Also available in: Unified diff
finaly after so much rage it works probaply...