Revision 50432
Added by Myrto Koukouli about 6 years ago
adminPg-metrics.component.ts | ||
---|---|---|
1 | 1 |
import { Component, OnInit, ViewChild } from '@angular/core'; |
2 |
import { RepositoryService } from '../../services/repository.service';
|
|
2 |
import { PiwikService } from '../../services/piwik.service';
|
|
3 | 3 |
import { PiwikInfo } from '../../domain/typeScriptClasses'; |
4 |
import { AuthenticationService } from '../../services/authentication.service'; |
|
5 | 4 |
import { loadingReposMessage, reposRetrievalError } from '../../domain/shared-messages'; |
6 | 5 |
import { ConfirmationDialogComponent } from '../../shared/reusablecomponents/confirmation-dialog.component'; |
7 | 6 |
|
... | ... | |
23 | 22 |
@ViewChild('confirmApprovalModal') |
24 | 23 |
public confirmApprovalModal: ConfirmationDialogComponent; |
25 | 24 |
|
26 |
constructor(private repoService: RepositoryService) {}
|
|
25 |
constructor(private piwikService: PiwikService) {}
|
|
27 | 26 |
|
28 | 27 |
ngOnInit() { |
29 | 28 |
this.getPiwiks(); |
... | ... | |
34 | 33 |
getPiwiks(){ |
35 | 34 |
this.showSpinner = true; |
36 | 35 |
this.loadingMessage = loadingReposMessage; |
37 |
this.repoService.getPiwikSitesForRepos()
|
|
36 |
this.piwikService.getPiwikSitesForRepos()
|
|
38 | 37 |
.subscribe( |
39 | 38 |
piwiks => this.piwiks = piwiks.sort( function(a,b){ |
40 | 39 |
if(a.repositoryName<b.repositoryName){ |
Also available in: Unified diff
reorganized services