Project

General

Profile

« Previous | Next » 

Revision 59207

changes on interface-form comments

View differences:

register-existing-datasource.component.ts
34 34
  repo: Repository;
35 35
  repoInterfaces: RepositoryInterface[] = [];
36 36
  interfacesToDelete: string[] = [];
37
  // comments: string;
37 38

  
38 39
  /* queryParams are used to follow the steps without refreshing the page
39 40
   * This was needed for Help Service [which sends back info according to the current router.url].
......
56 57
  @ViewChild ('registerDatasource')
57 58
  registerDatasource: DatasourceUpdateFormComponent;
58 59

  
60
  @ViewChild ('interfaceComments')
61
  interfaceComments: DatasourceNewInterfaceFormComponent;
62

  
59 63
  @ViewChildren('interfacesArray') interfacesArray: QueryList<DatasourceNewInterfaceFormComponent>;
60 64
  dataForInterfaceComp: any[] = [];
61 65

  
......
352 356
            if (this.interfacesToDelete.some(id => id === intrf.id)) {
353 357
              req = this.repoService.deleteInterface(intrf.id, this.repo.registeredBy);
354 358
            } else {
355
              req = this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, intrf);
359
              const comments = this.interfaceComments.getComments();
360
              req = this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, comments, intrf);
356 361
            }
357 362
            return req;
358 363
          } else {
359
            return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, intrf);
364
            const comments = this.interfaceComments.getComments();
365
            return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, comments, intrf);
360 366
          }
361 367
        })
362 368
      ).subscribe(

Also available in: Unified diff