Project

General

Profile

« Previous | Next » 

Revision 54722

probably fixed piwik-matomo analytics script

View differences:

register-existing-datasource.component.ts
115 115
      of(this.getInterfaces()).subscribe(
116 116
        () => {
117 117
          if (this.repoInterfaces.length > 0) {
118
            this.updateRepository();
118
            // this.updateRepository();
119
            this.registerRepository();
119 120
          } else {
120 121
            this.errorMessage = noInterfacesSaved;
121 122
          }
......
269 270
    window.open('../../../../assets/imgs/3_0ValidatedLogo.png', '_blank', 'enabledstatus=0,toolbar=0,menubar=0,location=0');
270 271
  }
271 272

  
272
  updateRepository() {
273
  // updateRepository() {
274
  //   if (this.repo) {
275
  //     this.loadingMessage = 'Saving changes';
276
  //     this.errorMessage = '';
277
  //     this.repoService.updateRepository(this.repo).subscribe(
278
  //       response => {
279
  //         console.log(`updateRepository responded: ${response.id}, ${response.registeredBy}`);
280
  //         this.repo = response;
281
  //       },
282
  //       error => {
283
  //         console.log(error);
284
  //         this.loadingMessage = '';
285
  //         this.errorMessage = 'The changes could not be saved';
286
  //       },
287
  //       () => {
288
  //         this.saveNewInterfaces();
289
  //       }
290
  //     );
291
  //   }
292
  // }
293

  
294
  registerRepository() {
273 295
    if (this.repo) {
274 296
      this.loadingMessage = 'Saving changes';
275 297
      this.errorMessage = '';
276
      this.repoService.updateRepository(this.repo).subscribe(
298
      this.repoService.addRepository( this.repo.datasourceType, this.repo).subscribe(
277 299
        response => {
278
          console.log(`updateRepository responded: ${response.id}, ${response.registeredBy}`);
300
          console.log(`addRepository responded: ${response.id}, ${response.registeredBy}`);
279 301
          this.repo = response;
280 302
        },
281 303
        error => {

Also available in: Unified diff