mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			477 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			477 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.success = NotifyPopup;
 | 
						|
 | 
						|
	this.address = window.parent.UPDATING_NODE_IP_ADDRESS
 | 
						|
	if (this.address != null) {
 | 
						|
		this.address.isUp = (this.address.isUp ? 1 : 0)
 | 
						|
 | 
						|
		// 专属集群
 | 
						|
		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)
 | 
						|
			})
 | 
						|
		}
 | 
						|
	}
 | 
						|
}) |