mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	CS-14297: cloudstack 3.0 UI - Delete Primary Storage dialogbox - add "Force Remove" checkbox.
This commit is contained in:
		
							parent
							
								
									a678988f33
								
							
						
					
					
						commit
						bab65c8a29
					
				| @ -6642,16 +6642,24 @@ | ||||
|               'remove': { | ||||
|                 label: 'label.action.delete.primary.storage' , | ||||
|                 messages: {                   | ||||
|                   confirm: function(args) { | ||||
|                     return 'message.action.delete.primary.storage'; | ||||
|                   }, | ||||
|                   notification: function(args) { | ||||
|                     return 'label.action.delete.primary.storage'; | ||||
|                   } | ||||
|                 },		 | ||||
|                 createForm: { | ||||
|                   title: 'label.action.delete.primary.storage',                  | ||||
|                   fields: { | ||||
|                     isForced: { | ||||
|                       label: 'force.remove', | ||||
|                       isBoolean: true                       | ||||
|                     } | ||||
|                   } | ||||
|                 },									 | ||||
|                 action: function(args) {								 | ||||
| 								  var array1 = [];                   | ||||
|                   array1.push("&forced=" + (args.data.isForced == "on"));								 | ||||
|                   $.ajax({ | ||||
|                     url: createURL("deleteStoragePool&id=" + args.context.primarystorages[0].id), | ||||
|                     url: createURL("deleteStoragePool&id=" + args.context.primarystorages[0].id + array1.join("")), | ||||
|                     dataType: "json", | ||||
|                     async: true, | ||||
|                     success: function(json) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user