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:
Rajani Karuturi 2016-12-06 16:25:01 +05:30
parent 01e78f980b
commit 4f124b2775
1 changed files with 5 additions and 1 deletions

View File

@ -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';