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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]