mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	show Warning instead of Confirmation in confirm dialog if isWarning is set to true
This commit is contained in:
		
							parent
							
								
									0c4128e024
								
							
						
					
					
						commit
						54db0d2a70
					
				| @ -1275,6 +1275,7 @@ label.vsmstoragevlanid=Storage VLAN ID | ||||
| label.vsphere.managed=vSphere Managed | ||||
| label.waiting=Waiting | ||||
| label.warn=Warn | ||||
| label.warning=Warning | ||||
| label.wednesday=Wednesday | ||||
| label.weekly=Weekly | ||||
| label.welcome.cloud.console=Welcome to Management Console | ||||
|  | ||||
| @ -256,6 +256,7 @@ under the License. | ||||
| 'label.vsphere.managed': '<fmt:message key="label.vsphere.managed" />', | ||||
| 'label.waiting': '<fmt:message key="label.waiting" />', | ||||
| 'label.warn': '<fmt:message key="label.warn" />', | ||||
| 'label.warning': '<fmt:message key="label.warning" />', | ||||
| 'label.wednesday': '<fmt:message key="label.wednesday" />', | ||||
| 'label.weekly': '<fmt:message key="label.weekly" />', | ||||
| 'label.welcome.cloud.console': '<fmt:message key="label.welcome.cloud.console" />', | ||||
|  | ||||
| @ -675,6 +675,7 @@ | ||||
|                             confirm: function(args) { | ||||
|                                 return 'message.action.expunge.instance'; | ||||
|                             }, | ||||
|                             isWarning: true, | ||||
|                             notification: function(args) { | ||||
|                                 return 'label.action.expunge.instance'; | ||||
|                             } | ||||
| @ -741,6 +742,7 @@ | ||||
|                             confirm: function(args) { | ||||
|                                 return 'message.reinstall.vm'; | ||||
|                             }, | ||||
|                             isWarning: true, | ||||
|                             notification: function(args) { | ||||
|                                 return 'label.reinstall.vm'; | ||||
|                             }, | ||||
|  | ||||
| @ -827,7 +827,7 @@ | ||||
|                     _l(args.message) | ||||
|                 ) | ||||
|             ).dialog({ | ||||
|                 title: _l('label.confirmation'), | ||||
|                 title: args.isWarning ? _l('label.warning') : _l('label.confirmation'), | ||||
|                 dialogClass: args.isWarning ? 'confirm warning': 'confirm', | ||||
|                 closeOnEscape: false, | ||||
|                 zIndex: 5000, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user