Skip to content

Commit

Permalink
fix the bug of AppMonitor just have two options in 1.3 (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Counterflowwind authored Sep 24, 2021
1 parent 3e32ed3 commit f88733b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/msp/menu/menu.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ func (s *menuService) GetMenu(ctx context.Context, req *pb.GetMenuRequest) (*pb.
menuMap := make(map[string]*pb.MenuItem)
for _, item := range items {
isK8s := clusterInfo.IsK8S() || (!splitEDAS && clusterInfo.IsEDAS())
if item.EnName == "EnvironmentSet" || item.EnName == "AppMonitor" {
fmt.Println(item.EnName, isK8s)
if item.EnName == "EnvironmentSet" {
for _, child := range item.Children {
child.Params = item.Params
// 反转exists字段,隐藏引导页,显示功能子菜单
Expand Down

0 comments on commit f88733b

Please sign in to comment.