Skip to content

Commit 7d430c8

Browse files
author
Jessica Wang
committed
cloudStack 3.0 new UI - domain page - Delete Domain action - pass cleanup parameter to API call if "Forced" checkbox is visible.
1 parent b8ba041 commit 7d430c8

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

ui/scripts/domains.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,15 @@
2424
notification: function(args) {
2525
return 'Domain is deleted';
2626
}
27-
},
28-
29-
preFilter: function(args) {
30-
if(isAdmin()) {
31-
args.$form.find('.form-item[rel=isForced]').css('display', 'inline-block');
32-
}
33-
},
27+
},
3428

3529
createForm: {
36-
title: 'Delete domain',
30+
title: 'Delete domain',
31+
preFilter: function(args) {
32+
if(isAdmin()) {
33+
args.$form.find('.form-item[rel=isForced]').css('display', 'inline-block');
34+
}
35+
},
3736
fields: {
3837
isForced: {
3938
label: 'Force delete',
@@ -44,8 +43,7 @@
4443
},
4544

4645
action: function(args) {
47-
var array1 = [];
48-
debugger;
46+
var array1 = [];
4947
if(args.$form.find('.form-item[rel=isForced]').css("display") != "none") //uncomment after Brian fix it to include $form in args
5048
array1.push("&cleanup=" + (args.data.isForced == "on"));
5149

0 commit comments

Comments
 (0)