Modify click to registry under project

This commit is contained in:
pfh 2018-04-20 21:26:45 +08:00
parent fcf4807583
commit cdcaff10bf
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,3 @@
<div style="margin-top: 4px;">
<hbr-replication #replicationView [projectId]="projectIdentify" [projectName]="projectName" [isSystemAdmin]="isSystemAdmin" [withReplicationJob]='true' ></hbr-replication>
<hbr-replication #replicationView [projectId]="projectIdentify" [projectName]="projectName" [isSystemAdmin]="isSystemAdmin" [withReplicationJob]='true' (goToRegistry)="goRegistry()"></hbr-replication>
</div>

View File

@ -28,6 +28,7 @@ export class ReplicationPageComponent implements OnInit, AfterViewInit {
projectName: string;
constructor(private route: ActivatedRoute,
private router: Router,
private proService: ProjectService,
private session: SessionService) { }
@ -59,4 +60,8 @@ export class ReplicationPageComponent implements OnInit, AfterViewInit {
}
}
}
goRegistry(): void {
this.router.navigate(['/harbor', 'registries']);
}
}