mirror of https://github.com/apache/cloudstack.git
cloudStack 3.0 new UI - domain page - Delete Domain action - pass cleanup parameter to API call if "Forced" checkbox is visible.
This commit is contained in:
parent
b8ba041027
commit
7d430c8a25
|
|
@ -24,16 +24,15 @@
|
|||
notification: function(args) {
|
||||
return 'Domain is deleted';
|
||||
}
|
||||
},
|
||||
|
||||
preFilter: function(args) {
|
||||
if(isAdmin()) {
|
||||
args.$form.find('.form-item[rel=isForced]').css('display', 'inline-block');
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
createForm: {
|
||||
title: 'Delete domain',
|
||||
title: 'Delete domain',
|
||||
preFilter: function(args) {
|
||||
if(isAdmin()) {
|
||||
args.$form.find('.form-item[rel=isForced]').css('display', 'inline-block');
|
||||
}
|
||||
},
|
||||
fields: {
|
||||
isForced: {
|
||||
label: 'Force delete',
|
||||
|
|
@ -44,8 +43,7 @@
|
|||
},
|
||||
|
||||
action: function(args) {
|
||||
var array1 = [];
|
||||
debugger;
|
||||
var array1 = [];
|
||||
if(args.$form.find('.form-item[rel=isForced]').css("display") != "none") //uncomment after Brian fix it to include $form in args
|
||||
array1.push("&cleanup=" + (args.data.isForced == "on"));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue