mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	ui: Show diskoffering for create volume from ROOT volume snaps (#4912)
Fixes the issue of not being able to select the diskofferingid while creating volumes from snapshots of ROOT volumes
This commit is contained in:
		
							parent
							
								
									0302750aac
								
							
						
					
					
						commit
						90fc5acda4
					
				| @ -284,7 +284,13 @@ export default { | |||||||
|           label: 'label.action.create.volume', |           label: 'label.action.create.volume', | ||||||
|           dataView: true, |           dataView: true, | ||||||
|           show: (record) => { return record.state === 'BackedUp' }, |           show: (record) => { return record.state === 'BackedUp' }, | ||||||
|           args: ['snapshotid', 'name'], |           args: (record, store) => { | ||||||
|  |             var fields = ['snapshotid', 'name'] | ||||||
|  |             if (record.volumetype === 'ROOT') { | ||||||
|  |               fields.push('diskofferingid') | ||||||
|  |             } | ||||||
|  |             return fields | ||||||
|  |           }, | ||||||
|           mapping: { |           mapping: { | ||||||
|             snapshotid: { |             snapshotid: { | ||||||
|               value: (record) => { return record.id } |               value: (record) => { return record.id } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user