Skip to content

Commit

Permalink
节点导航条,要求产品是StarAgent时,才有应用在线和发布菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Mar 20, 2024
1 parent 6154071 commit e126ac4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Stardust.Web/Views/Shared/_Node_Nav.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
dic["历史"] = "/Nodes/NodeHistory?nodeId=" + nodeId;
dic["命令"] = "/Nodes/NodeCommand?nodeId=" + nodeId;
dic["性能"] = "/Nodes/NodeData?nodeId=" + nodeId;
dic["应用在线"] = "/Registry/AppOnline?nodeId=" + nodeId;
dic["应用发布"] = "/Deployment/AppDeployNode?enable=1&nodeId=" + nodeId;

if (node.Product == "StarAgent")
{
dic["应用在线"] = "/Registry/AppOnline?nodeId=" + nodeId;
dic["应用发布"] = "/Deployment/AppDeployNode?enable=1&nodeId=" + nodeId;
}
}
@if (nodeId > 0)
{
Expand Down

0 comments on commit e126ac4

Please sign in to comment.