Merge pull request #1818 from Accelerite/CLOUDSTACK-9655

CLOUDSTACK-9655 The template which is registered in all zones will be deleted by deleting 1 template on any zoneadded 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?").

* pr/1818:
  CLOUDSTACK-9655 The template which is registered in all zones will be deleted by deleting 1 template on any zone

Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
This commit is contained in:
Rajani Karuturi 2017-02-16 10:38:35 +05:30
commit 6dced70aa8
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';