mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 8776: cloudstack 3.0 new UI - router page - remove reboot action.
This commit is contained in:
parent
87f397b1e9
commit
1ddc286430
@ -1532,38 +1532,7 @@
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
},
|
||||
|
||||
restart: {
|
||||
label: 'reboot router',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'Are you sure you want to reboot router?';
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'rebooting router';
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL('restartNetwork&id=' + args.context.routers[0].guestnetworkid),
|
||||
//url: createURL('rebootRouter&id=' + args.context.routers[0].id),
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var jid = json.restartnetworkresponse.jobid;
|
||||
args.response.success({
|
||||
_custom: {
|
||||
jobId: jid
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
changeService: {
|
||||
label: 'Change service offering',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user