mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 02:22:52 +01:00
bug 12910: cloudstack 3.0 new UI - network page - restart network - add checkbox "Clean up" on dialog box.
This commit is contained in:
parent
c4677d5f80
commit
cb6f1b619f
@ -302,10 +302,31 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
'restart': {
|
'restart': {
|
||||||
label: 'Restart network',
|
label: 'Restart network',
|
||||||
action: function(args) {
|
createForm: {
|
||||||
|
title: 'Restart network',
|
||||||
|
desc: 'Please confirm that you want to restart network',
|
||||||
|
fields: {
|
||||||
|
cleanup: {
|
||||||
|
label: 'Clean up',
|
||||||
|
isBoolean: true,
|
||||||
|
isChecked: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
messages: {
|
||||||
|
confirm: function(args) {
|
||||||
|
return 'Please confirm that you want to restart network';
|
||||||
|
},
|
||||||
|
notification: function(args) {
|
||||||
|
return 'Restarting network';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
action: function(args) {
|
||||||
|
var array1 = [];
|
||||||
|
array1.push("&cleanup=" + (args.data.cleanup == "on"));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("restartNetwork&cleanup=true&id=" + args.context.networks[0].id),
|
url: createURL("restartNetwork&id=" + args.context.networks[0].id + array1.join("")),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: true,
|
async: true,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
@ -321,15 +342,7 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
messages: {
|
|
||||||
confirm: function(args) {
|
|
||||||
return 'Please confirm that you want to restart network';
|
|
||||||
},
|
|
||||||
notification: function(args) {
|
|
||||||
return 'Restarting network';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
notification: {
|
notification: {
|
||||||
poll: pollAsyncJobResult
|
poll: pollAsyncJobResult
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user