mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-15 04:41:25 +08:00
v1.4.1
This commit is contained in:
@@ -24,6 +24,30 @@ Tea.context(function () {
|
||||
})
|
||||
}
|
||||
|
||||
this.secondaryClusters = []
|
||||
this.secondaryClusterIds = this.secondaryClusters.map(function (v) {
|
||||
return v.id
|
||||
})
|
||||
|
||||
this.addSecondary = function () {
|
||||
let that = this
|
||||
let selectedClusterIds = [this.clusterId].concat(this.secondaryClusterIds)
|
||||
teaweb.popup("/clusters/selectPopup?selectedClusterIds=" + selectedClusterIds.join(",") + "&mode=multiple", {
|
||||
height: "30em",
|
||||
width: "50em",
|
||||
callback: function (resp) {
|
||||
if (resp.data.cluster != null) {
|
||||
that.secondaryClusterIds.push(resp.data.cluster.id)
|
||||
that.secondaryClusters.push(resp.data.cluster)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
this.removeSecondary = function (index) {
|
||||
this.secondaryClusterIds.$remove(index)
|
||||
this.secondaryClusters.$remove(index)
|
||||
}
|
||||
|
||||
/**
|
||||
* 安装
|
||||
*/
|
||||
@@ -35,6 +59,7 @@ Tea.context(function () {
|
||||
this.installMethod = method
|
||||
}
|
||||
|
||||
|
||||
this.selectSSHHost = function (host) {
|
||||
this.sshHost = host
|
||||
this.changeSSHHost()
|
||||
|
||||
Reference in New Issue
Block a user