Project

General

Profile

« Previous | Next » 

Revision 57910

replaced Repository object with updated RepositorySnippet in getRepositoriesOfUsers (see ticket #5190)

View differences:

repository-tiles.component.ts
1 1
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
2
import { Repository } from '../../domain/typeScriptClasses';
2
import {RepositorySnippet} from '../../domain/typeScriptClasses';
3 3
import { RepositoryService } from '../../services/repository.service';
4 4
import { AuthenticationService } from '../../services/authentication.service';
5 5
import { loadingReposMessage, loadingUserRepoInfoEmpty, reposRetrievalError } from '../../domain/shared-messages';
......
10 10
})
11 11

  
12 12
export class RepositoryTilesComponent implements OnInit {
13
  reposOfUser: Repository[] = [];
13
  reposOfUser: RepositorySnippet[] = [];
14 14
  tilesView: boolean;
15 15
  errorMessage: string;
16 16
  warningMessage: string;
......
32 32
    this.repoService.getRepositoriesOfUser(this.authService.getUserEmail())
33 33
      .subscribe(
34 34
        repos => this.reposOfUser = repos.sort( function(a, b) {
35
          if (a.officialName < b.officialName) {
35
          if (a.officialname < b.officialname) {
36 36
            return -1;
37
          } else if (a.officialName > b.officialName) {
37
          } else if (a.officialname > b.officialname) {
38 38
            return 1;
39 39
          } else {
40 40
            return 0;
......
55 55
      );
56 56
  }
57 57

  
58
  getLinkToNext(repo: Repository): string {
58
  getLinkToNext(repo: RepositorySnippet): string {
59 59
    if (this.parent === 'metrics') {
60 60
      if (repo.piwikInfo) {
61 61
        if (repo.piwikInfo.validated === true) {
......
71 71
    }
72 72
  }
73 73

  
74
  getBadgeCSS(repo: Repository): string {
74
  getBadgeCSS(repo: RepositorySnippet): string {
75 75
    if (this.parent === 'metrics') {
76 76
      if (repo.piwikInfo) {
77 77
        if (repo.piwikInfo.validated === true) {
......
85 85
    }
86 86
  }
87 87

  
88
  getBadgeText(repo: Repository): string {
88
  getBadgeText(repo: RepositorySnippet): string {
89 89
    if (this.parent === 'metrics') {
90 90
      if (repo.piwikInfo) {
91 91
        if (repo.piwikInfo.validated === true) {

Also available in: Unified diff