Project

General

Profile

« Previous | Next » 

Revision 51590

corrected enableMetrics method

View differences:

metrics-enable.component.ts
88 88
        openaireId: this.oaId,
89 89
        repositoryName: this.repo.officialName,
90 90
        country: this.repo.countryName,
91
        siteId: `${this.analyticsUrl}siteName=${encodeURIComponent(this.repo.officialName)}&url=${encodeURIComponent(this.repo.websiteUrl)}`,
91
        siteId: '',
92 92
        authenticationToken: this.authenticationToken,
93 93
        creationDate: null,
94 94
        requestorName: this.authService.getUserName(),
......
97 97
        validationDate: null,
98 98
        comment: ''
99 99
      };
100
      /*siteId: `${this.analyticsUrl}siteName=${encodeURIComponent(this.repo.officialName)}&url=${encodeURIComponent(this.repo.websiteUrl)}`,*/
101

  
100 102
      /*this.piwikService.savePiwikInfo(piwik).subscribe(*/
101
      this.piwikService.enableMetricsForRepository(piwik).subscribe(
103
      this.piwikService.enableMetricsForRepository(this.repo.officialName,this.repo.websiteUrl,piwik).subscribe(
102 104
        response => {
103 105
          console.log(`savePiwikInfo answered: ${response}`);
104 106
          this.successMessage = enabledMetricsSuccess;

Also available in: Unified diff