Skip to content

Commit 6dced70

Browse files
committed
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>
2 parents abd7860 + 4f124b2 commit 6dced70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/scripts/templates.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,11 @@
14471447
label: 'label.action.delete.template',
14481448
messages: {
14491449
confirm: function(args) {
1450-
return 'message.action.delete.template';
1450+
if(args.context.templates[0].crossZones == true) {
1451+
return 'message.action.delete.template.for.all.zones';
1452+
} else {
1453+
return 'message.action.delete.template';
1454+
}
14511455
},
14521456
notification: function(args) {
14531457
return 'label.action.delete.template';

0 commit comments

Comments
 (0)