Revision 60937
Added by Andreas Mantas almost 3 years ago
register-existing-datasource.component.ts | ||
---|---|---|
356 | 356 |
if (this.interfacesToDelete.some(id => id === intrf.id)) { |
357 | 357 |
req = this.repoService.deleteInterface(intrf.id, this.repo.registeredBy); |
358 | 358 |
} else { |
359 |
const comments = this.interfaceComments.getComments();
|
|
360 |
req = this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, comments, intrf); |
|
359 |
// console.log('comments', intrf.comments);
|
|
360 |
req = this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, intrf.comments, intrf);
|
|
361 | 361 |
} |
362 | 362 |
return req; |
363 | 363 |
} else { |
364 |
const comments = this.interfaceComments.getComments();
|
|
365 |
return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, comments, intrf); |
|
364 |
// console.log('comments', intrf.comments);
|
|
365 |
return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, intrf.comments, intrf);
|
|
366 | 366 |
} |
367 | 367 |
}) |
368 | 368 |
).subscribe( |
Also available in: Unified diff
fixed comments bug on interfaces