mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9655 The template which is registered in all zones will be
deleted by deleting 1 template on any zone
added extra warning message if it's a cross-zone template ("This is a
cross zone template and will be deleted from all the zones. Are you sure
you want to proceed?").
This commit is contained in:
parent
01e78f980b
commit
4f124b2775
|
|
@ -1447,7 +1447,11 @@
|
|||
label: 'label.action.delete.template',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'message.action.delete.template';
|
||||
if(args.context.templates[0].crossZones == true) {
|
||||
return 'message.action.delete.template.for.all.zones';
|
||||
} else {
|
||||
return 'message.action.delete.template';
|
||||
}
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'label.action.delete.template';
|
||||
|
|
|
|||
Loading…
Reference in New Issue