This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAdmin/web/views/@default/ns/clusters/cluster/index.js
T

21 lines
622 B
JavaScript

Tea.context(function () {
this.deleteNode = function (nodeId) {
teaweb.confirm("确定要删除这个节点吗?", function () {
this.$post("/ns/clusters/cluster/deleteNode")
.params({
nodeId: nodeId
})
.refresh();
})
}
this.upNode = function (nodeId) {
teaweb.confirm("确定要手动上线此节点吗?", function () {
this.$post("/ns/clusters/cluster/node/up")
.params({
nodeId: nodeId
})
.refresh()
})
}
})