Revision 59207
Added by Andreas Mantas almost 4 years ago
register-new-datasource.component.ts | ||
---|---|---|
22 | 22 |
repo: Repository = null; |
23 | 23 |
repoInterfaces: RepositoryInterface[] = []; |
24 | 24 |
interfacesToDelete: string[] = []; |
25 |
// comments: string; |
|
25 | 26 |
|
26 | 27 |
/* queryParams are used to follow the steps without refreshing the page |
27 | 28 |
* This was needed for Help Service [which sends back info according to the current router.url]. |
... | ... | |
41 | 42 |
@ViewChild ('registerDatasource') |
42 | 43 |
registerDatasource: DatasourceCreateFormComponent; |
43 | 44 |
|
45 |
@ViewChild ('interfaceComments') |
|
46 |
interfaceComments: DatasourceNewInterfaceFormComponent; |
|
47 |
|
|
44 | 48 |
@ViewChildren('interfacesArray') interfacesArray: QueryList<DatasourceNewInterfaceFormComponent>; |
45 | 49 |
dataForInterfaceComp: any[] = []; |
46 | 50 |
|
... | ... | |
237 | 241 |
from(this.repoInterfaces).pipe( |
238 | 242 |
concatMap(intrf => { |
239 | 243 |
if (intrf.id) { |
240 |
return this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, intrf); |
|
244 |
const comments = this.interfaceComments.getComments(); |
|
245 |
return this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, comments, intrf); |
|
241 | 246 |
} else { |
242 |
return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, intrf); |
|
247 |
const comments = this.interfaceComments.getComments(); |
|
248 |
return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, comments, intrf); |
|
243 | 249 |
} |
244 | 250 |
}) |
245 | 251 |
).subscribe( |
Also available in: Unified diff
changes on interface-form comments