修改域名服务界面细节

This commit is contained in:
GoEdgeLab
2021-06-03 22:09:12 +08:00
parent 21d2e7e924
commit 09a193820d
4 changed files with 22 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ func init() {
GetPost("/delete", new(DeleteAction)). GetPost("/delete", new(DeleteAction)).
GetPost("/createNode", new(CreateNodeAction)). GetPost("/createNode", new(CreateNodeAction)).
Post("/deleteNode", new(DeleteNodeAction)). Post("/deleteNode", new(DeleteNodeAction)).
Get("/upgradeRemote", new(UpgradeRemoteAction)).
// 节点相关 // 节点相关
Prefix("/ns/clusters/cluster/node"). Prefix("/ns/clusters/cluster/node").

View File

@@ -86,7 +86,7 @@ func (this *IndexAction) RunGet(params struct {
// 检查是否有新版本 // 检查是否有新版本
if len(status.OS) > 0 { if len(status.OS) > 0 {
checkVersionResp, err := this.RPC().NodeRPC().CheckNodeLatestVersion(this.AdminContext(), &pb.CheckNodeLatestVersionRequest{ checkVersionResp, err := this.RPC().NSNodeRPC().CheckNSNodeLatestVersion(this.AdminContext(), &pb.CheckNSNodeLatestVersionRequest{
Os: status.OS, Os: status.OS,
Arch: status.Arch, Arch: status.Arch,
CurrentVersion: status.BuildVersion, CurrentVersion: status.BuildVersion,

View File

@@ -0,0 +1,17 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package cluster
import "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
type UpgradeRemoteAction struct {
actionutils.ParentAction
}
func (this *UpgradeRemoteAction) Init() {
this.Nav("", "", "")
}
func (this *UpgradeRemoteAction) RunGet(params struct{}) {
this.Show()
}

View File

@@ -0,0 +1,3 @@
{$layout}
<p class="ui message error">此功能暂未开放。</p>