Revision 53111
Added by Myrto Koukouli over 5 years ago
register-datasource-shareable.component.ts | ||
---|---|---|
5 | 5 |
noRepositoriesFound, |
6 | 6 |
noRepositoryChosenMsg, |
7 | 7 |
noServiceMessage } from '../../../domain/shared-messages'; |
8 |
import { Country, Repository } from '../../../domain/typeScriptClasses'; |
|
8 |
import { Country, Repository, RepositorySnippet } from '../../../domain/typeScriptClasses';
|
|
9 | 9 |
|
10 | 10 |
@Component({ |
11 | 11 |
selector: 'register-datasource-shareable', |
... | ... | |
16 | 16 |
countries: Country[] = []; |
17 | 17 |
hasSelectedCountry: boolean; |
18 | 18 |
selectedCountry: string; |
19 |
countryRepos: Repository[] = []; |
|
19 |
countryRepos: RepositorySnippet[] = [];
|
|
20 | 20 |
hasSelectedRepo: boolean; |
21 | 21 |
|
22 | 22 |
noRepositories: string; |
... | ... | |
112 | 112 |
} |
113 | 113 |
|
114 | 114 |
getLatestUpdate() { |
115 |
return this.repoService.getListLatestUpdate(this.mode).subscribe( |
|
115 |
return this.repoService.getListLatestUpdate(this.mode).subscribe (
|
|
116 | 116 |
responseDate => this.latestUpdate = responseDate['lastCollectionDate'], |
117 | 117 |
error => console.log(error) |
118 | 118 |
); |
Also available in: Unified diff
new getRepositoriesByCountry method