Project

General

Profile

« Previous | Next » 

Revision 60937

fixed comments bug on interfaces

View differences:

datasource-new-interface-form.component.ts
12 12
  datasourceType: string;
13 13
  datasourceClass: string;
14 14
  registeredBy: string;
15
  comments: string;
15 16
}
16 17

  
17 18
@Component({
......
54 55
  classCodes: string[] = [];
55 56
  compClasses: Map<string, string> = new Map<string, string>();
56 57
  existingValSet: boolean;
57
  comments: string;
58 58
  interfaceInfo: InterfaceInformation;
59 59

  
60 60
  constructor(private fb: FormBuilder,
......
258 258
    currentInterface.desiredCompatibilityLevel = compLvl;
259 259
    currentInterface.compliance = compLvl;
260 260
    currentInterface.typology = this.currentRepo.datasourceClass;
261
    this.comments = comment;
261
    currentInterface.comments = comment;
262 262

  
263 263
    if (!this.inRegister) {
264 264
      this.addInterface(currentInterface);
......
274 274
    this.repoService.addInterface(this.currentRepo.datasourceType,
275 275
                                  this.currentRepo.id,
276 276
                                  this.currentRepo.registeredBy,
277
                                  this.comments,
277
                                  this.currentRepo.comments,
278 278
                                  newInterface).subscribe(
279 279
      addedInterface => {
280 280
        console.log(`addInterface responded ${JSON.stringify(addedInterface)}`);
......
307 307
    this.currentInterface.desiredCompatibilityLevel = compLvl;
308 308
    this.currentInterface.compliance = compLvl;
309 309
    this.currentInterface.typology = this.currentRepo.datasourceClass;
310
    this.comments = comment;
310
    this.currentInterface.comments = comment;
311 311

  
312 312
    if (!this.inRegister) {
313 313
      this.updateInterface();
......
322 322
    this.loadingMessage = formSubmitting;
323 323
    this.repoService.updateInterface(this.currentRepo.id,
324 324
                                     this.currentRepo.registeredBy,
325
                                     this.comments,
325
                                     this.currentRepo.comments,
326 326
                                     this.currentInterface).subscribe(
327 327
      response => {
328 328
        console.log(`updateRepository responded ${JSON.stringify(response)}`);
......
367 367
    return this.interfaceToExport;
368 368
  }
369 369

  
370
  getComments() {
371
    return this.comments;
372
  }
373

  
374 370
}

Also available in: Unified diff