mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Volume page - detail view - make API call to refresh data when Refresh button is clicked.
This commit is contained in:
		
							parent
							
								
									761e814628
								
							
						
					
					
						commit
						708c7d2168
					
				@ -870,15 +870,22 @@
 | 
			
		||||
                  }
 | 
			
		||||
                ],
 | 
			
		||||
 | 
			
		||||
                dataProvider: function(args) {
 | 
			
		||||
                  args.response.success(
 | 
			
		||||
                    {
 | 
			
		||||
                      actionFilter: volumeActionfilter,
 | 
			
		||||
                      data: args.context.volumes[0]
 | 
			
		||||
                    }
 | 
			
		||||
                  );
 | 
			
		||||
                dataProvider: function(args) {		
 | 
			
		||||
								  $.ajax({
 | 
			
		||||
										url: createURL("listVolumes&id=" + args.context.volumes[0].id),
 | 
			
		||||
										dataType: "json",
 | 
			
		||||
										async: true,
 | 
			
		||||
										success: function(json) {								  
 | 
			
		||||
											var jsonObj = json.listvolumesresponse.volume[0];   
 | 
			
		||||
											args.response.success(
 | 
			
		||||
												{
 | 
			
		||||
													actionFilter: volumeActionfilter,
 | 
			
		||||
													data: jsonObj
 | 
			
		||||
												}
 | 
			
		||||
											);		
 | 
			
		||||
										}
 | 
			
		||||
									});								
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user