mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:03:26 +08:00
创建节点表单显示剩余配额
This commit is contained in:
@@ -92,6 +92,17 @@ func (this *CreateNodeAction) RunGet(params struct {
|
||||
// 安装文件下载
|
||||
this.Data["installerFiles"] = clusterutils.ListInstallerFiles()
|
||||
|
||||
// 限额
|
||||
maxNodes, leftNodes, err := this.findNodesQuota()
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
this.Data["quota"] = maps.Map{
|
||||
"maxNodes": maxNodes,
|
||||
"leftNodes": leftNodes,
|
||||
}
|
||||
|
||||
this.Show()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user