mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
手动执行健康检查时提示用户当前集群尚未部署网站
This commit is contained in:
@@ -15,7 +15,17 @@ func (this *RunPopupAction) Init() {
|
||||
this.Nav("", "", "")
|
||||
}
|
||||
|
||||
func (this *RunPopupAction) RunGet(params struct{}) {
|
||||
func (this *RunPopupAction) RunGet(params struct {
|
||||
ClusterId int64
|
||||
}) {
|
||||
// 检查是否已部署服务
|
||||
countServersResp, err := this.RPC().ServerRPC().CountAllEnabledServersWithNodeClusterId(this.AdminContext(), &pb.CountAllEnabledServersWithNodeClusterIdRequest{NodeClusterId: params.ClusterId})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
this.Data["hasServers"] = countServersResp.Count > 0
|
||||
|
||||
this.Show()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user