You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/07/08 06:13:35 UTC
[GitHub] [flink] simplejason commented on a diff in pull request #20212: [FLINK-28314][runtime-web] introduce "Cluster Environment" tab under history server
simplejason commented on code in PR #20212:
URL: https://github.com/apache/flink/pull/20212#discussion_r916494162
##########
flink-runtime-web/web-dashboard/src/app/app.component.html:
##########
@@ -58,29 +58,31 @@ <h1>Apache Flink Dashboard</h1>
</li>
</ul>
</li>
- <li nz-menu-item routerLinkActive="ant-menu-item-selected" [routerLink]="['/task-manager']">
- <span>
- <i nz-icon nzType="schedule"></i>
- <span>Task Managers</span>
- </span>
- </li>
- <li nz-menu-item routerLinkActive="ant-menu-item-selected" [routerLink]="['/job-manager']">
- <span>
- <i nz-icon nzType="build"></i>
- <span>Job Manager</span>
- </span>
- </li>
- <li
- *ngIf="webSubmitEnabled"
- nz-menu-item
- routerLinkActive="ant-menu-item-selected"
- [routerLink]="['/submit']"
- >
- <span>
- <i nz-icon nzType="upload"></i>
- <span>Submit New Job</span>
- </span>
- </li>
+ <ng-container *ngIf="!historyServerEnv">
+ <li nz-menu-item routerLinkActive="ant-menu-item-selected" [routerLink]="['/task-manager']">
+ <span>
Review Comment:
nit: It's better to use CanActivate cancel the current navigation if users accesses these links under historyServerEnv, but even if not, there is no problem :)
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org