Files
EdgeAdmin/web/views/@default/nodes/ipAddresses/updatePopup.js

18 lines
477 B
JavaScript
Raw Normal View History

Tea.context(function () {
2020-08-21 21:09:42 +08:00
this.success = NotifyPopup;
this.address = window.parent.UPDATING_NODE_IP_ADDRESS
2021-09-12 20:21:32 +08:00
if (this.address != null) {
this.address.isUp = (this.address.isUp ? 1 : 0)
2023-03-01 11:38:21 +08:00
// 专属集群
if (this.address.clusters != null) {
let selectedClusterIds = this.address.clusters.map(function (cluster) {
return cluster.id
})
this.clusters.forEach(function (cluster) {
cluster.isChecked = selectedClusterIds.$contains(cluster.id)
})
}
2021-09-12 20:21:32 +08:00
}
})