ysymi commented on a change in pull request #17698:
URL: https://github.com/apache/flink/pull/17698#discussion_r744734983



##########
File path: 
flink-runtime-web/web-dashboard/src/app/pages/task-manager/log-list/task-manager-log-list.component.html
##########
@@ -29,14 +29,16 @@
     <thead>
       <tr>
         <th>Log Name</th>
-        <th>Size (KB)</th>
+        <th [nzSortFn]="sortLastModifiedTimeFn">Last Modified Time</th>
+        <th [nzSortFn]="sortSizeFn">Size (KB)</th>
       </tr>
     </thead>
     <tbody>
-      <tr *ngFor="let log of listOfLog">
+      <tr *ngFor="let log of table.data">

Review comment:
       I found that change to `listOfLog` will lead sortFn not work, and if I 
add `trackBy` function in ngFor loop, the type of `log` will be clear and 
correct. I'm not familiar with Angular, so I'm not sure if it's a type trick or 
not. However add trackBy function seems like a way that works.   




-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to