ui: tape/BackupOverview: fix wrong media-set text for singlerestore
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							3d3d698bb3
						
					
				
				
					commit
					00a5072ad3
				
			@ -29,7 +29,7 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
 | 
				
			|||||||
		return;
 | 
							return;
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
	    let restoreid = node.data.restoreid;
 | 
						    let restoreid = node.data.restoreid;
 | 
				
			||||||
	    let mediaset = node.data.text;
 | 
						    let mediaset = node.data['media-set'];
 | 
				
			||||||
	    let uuid = node.data['media-set-uuid'];
 | 
						    let uuid = node.data['media-set-uuid'];
 | 
				
			||||||
	    let datastores = [node.data.store];
 | 
						    let datastores = [node.data.store];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -155,14 +155,15 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
 | 
				
			|||||||
	    let view = me.getView();
 | 
						    let view = me.getView();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	    Proxmox.Utils.setErrorMask(view, true);
 | 
						    Proxmox.Utils.setErrorMask(view, true);
 | 
				
			||||||
	    const media_set = node.data['media-set-uuid'];
 | 
						    const media_set_uuid = node.data['media-set-uuid'];
 | 
				
			||||||
 | 
						    const media_set = node.data.text;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	    try {
 | 
						    try {
 | 
				
			||||||
		let list = await PBS.Async.api2({
 | 
							let list = await PBS.Async.api2({
 | 
				
			||||||
		    method: 'GET',
 | 
							    method: 'GET',
 | 
				
			||||||
		    url: `/api2/extjs/tape/media/content`,
 | 
							    url: `/api2/extjs/tape/media/content`,
 | 
				
			||||||
		    params: {
 | 
							    params: {
 | 
				
			||||||
			'media-set': media_set,
 | 
								'media-set': media_set_uuid,
 | 
				
			||||||
		    },
 | 
							    },
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -181,6 +182,7 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
 | 
				
			|||||||
		    entry.text = entry.snapshot;
 | 
							    entry.text = entry.snapshot;
 | 
				
			||||||
		    entry.leaf = true;
 | 
							    entry.leaf = true;
 | 
				
			||||||
		    entry.children = [];
 | 
							    entry.children = [];
 | 
				
			||||||
 | 
							    entry['media-set'] = media_set;
 | 
				
			||||||
		    entry.restoreid = `${entry.store}:${entry.snapshot}`;
 | 
							    entry.restoreid = `${entry.store}:${entry.snapshot}`;
 | 
				
			||||||
		    let iconCls = PBS.Utils.get_type_icon_cls(entry.snapshot);
 | 
							    let iconCls = PBS.Utils.get_type_icon_cls(entry.snapshot);
 | 
				
			||||||
		    if (iconCls !== '') {
 | 
							    if (iconCls !== '') {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user