Skip to content

Commit

Permalink
Fix registry edit navigation
Browse files Browse the repository at this point in the history
Change-Id: Ic00784e353014be745869a2451ee414b5f56fe1e
Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/31909
Bellevue-Verified: e_vcoauto_glob_1 <[email protected]>
Closures-Verified: e_vcoauto_glob_1 <[email protected]>
Reviewed-by: e_vcoauto_glob_1 <[email protected]>
CS-Verified: e_vcoauto_glob_1 <[email protected]>
Upgrade-Verified: e_vcoauto_glob_1 <[email protected]>
  • Loading branch information
gmuleshkov authored and e_vcoauto_glob_1 committed Apr 23, 2018
1 parent dc2ad8b commit eaf45d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<clr-dg-row *clrDgItems="let registry of projectRegistries" [clrDgItem]="registry">
<clr-dg-cell><span *ngIf="isProjectSpecificRegistry(registry)"
><a routerLink="./'+ tabId + '/registry/{{getRegistryId(registry)}}/edit"
><a routerLink="{{getEditLink(registry)}}"
>{{ registry.name || registry.address }}</a></span>
<span *ngIf="!isProjectSpecificRegistry(registry)">{{ registry.name || registry.address }}</span>
</clr-dg-cell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,8 @@ export class ProjectRegistriesComponent implements OnInit {
return hasRegistryTenantLinks && this.projectLink
&& registry.tenantLinks.includes(this.projectLink);
}

getEditLink(registry: any) {
return './'+ this.tabId + '/registry/' + this.getRegistryId(registry) + '/edit';
}
}

0 comments on commit eaf45d1

Please sign in to comment.