ui: tape/ChangerStatus: hide drive-slots without assigned drives
if a user has not configured a drive for a specified driveslot of the changer, simply hide that slot Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							384a2b4d4f
						
					
				
				
					commit
					23eed6755a
				
			@ -519,7 +519,11 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
 | 
			
		||||
		    let type = entry['entry-kind'];
 | 
			
		||||
		    let id = entry['entry-id'];
 | 
			
		||||
 | 
			
		||||
		    if (type === 'drive' && drive_entries[id] !== undefined) {
 | 
			
		||||
		    if (type === 'drive') {
 | 
			
		||||
			if (drive_entries[id] === undefined) {
 | 
			
		||||
			    continue;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			entry = Ext.applyIf(entry, drive_entries[id]);
 | 
			
		||||
			valid_drives.push(drive_entries[id].name);
 | 
			
		||||
		    }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user