Revision 52598
Added by Myrto Koukouli almost 6 years ago
content-events.component.ts | ||
---|---|---|
2 | 2 |
import {AuthenticationService} from "../../services/authentication.service"; |
3 | 3 |
import {BrokerService} from "../../services/broker.service"; |
4 | 4 |
import {loadingRepoMessage, loadingUserRepoInfoEmpty, reposRetrievalError} from "../../domain/shared-messages"; |
5 |
import {ActivatedRoute, Router} from "@angular/router"; |
|
5 | 6 |
|
6 | 7 |
@Component ({ |
7 | 8 |
selector: 'app-content-events', |
... | ... | |
18 | 19 |
@Input() parent: string = ''; |
19 | 20 |
|
20 | 21 |
constructor(private authService: AuthenticationService, |
21 |
private brokerService: BrokerService) {} |
|
22 |
private brokerService: BrokerService, |
|
23 |
private router: Router, |
|
24 |
private route: ActivatedRoute) {} |
|
22 | 25 |
|
23 | 26 |
ngOnInit() { |
24 | 27 |
this.tilesView = true; |
... | ... | |
56 | 59 |
this.tilesView = !this.tilesView; |
57 | 60 |
} |
58 | 61 |
|
62 |
goToRepoEvents(repoName: string) { |
|
63 |
const newName = repoName.replace(/\//g,'|'); |
|
64 |
this.router.navigate([newName], {relativeTo: this.route}); |
|
65 |
} |
|
66 |
|
|
59 | 67 |
} |
Also available in: Unified diff
fixed help service and other minor changes