Revision 62414
Added by Andreas Mantas over 1 year ago
modules/uoa-repository-dashboard-gui/branches/fix-comments/src/app/services/repository.service.ts | ||
---|---|---|
35 | 35 |
|
36 | 36 |
addInterface(datatype: string, repoId: string, registeredBy: string, comment: string, newInterface: RepositoryInterface): Observable<RepositoryInterface> { |
37 | 37 |
let url; |
38 |
comment = newInterface.comments; // temporary fix. TODO: test with backend |
|
38 | 39 |
if (comment == null || comment === '') { |
39 | 40 |
url = `${this.apiUrl}addInterface?datatype=${datatype}&repoId=${repoId}®isteredBy=${registeredBy}`; |
40 | 41 |
} else { |
... | ... | |
47 | 48 |
|
48 | 49 |
updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface): Observable<RepositoryInterface> { |
49 | 50 |
let url; |
50 |
console.log(comment);
|
|
51 |
comment = interfaceInfo.comments; // temporary fix. TODO: test with backend
|
|
51 | 52 |
if (comment == null || comment === '') { |
52 | 53 |
url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}®isteredBy=${registeredBy}`; |
53 | 54 |
} else { |
Also available in: Unified diff
fix interface comments