ocket8888 commented on code in PR #7613:
URL: https://github.com/apache/trafficcontrol/pull/7613#discussion_r1253441771


##########
experimental/traffic-portal/src/app/core/types/detail/type-detail.component.html:
##########
@@ -16,6 +16,8 @@
        <tp-loading *ngIf="!type"></tp-loading>
        <form ngNativeValidate (ngSubmit)="submit($event)" *ngIf="type">
                <mat-card-header class="headers-container" *ngIf="!new">
+                       <a mat-raised-button color="primary" 
*ngIf="type.useInTable === 'cachegroup'" [routerLink]="'/core/cache-groups'" 
[queryParams]="{typeName: type.name}">View Cache Groups</a>
+                       <a mat-raised-button color="primary" 
*ngIf="type.useInTable === 'server'" [routerLink]="'/core/servers'" 
[queryParams]="{typeName: type.name}">View Servers</a>

Review Comment:
   `typeName` was just an example. You have to use the actual property names 
from the API's response structure for each of table's objects. This doesn't 
work for servers, currently.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to