mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack 3.0 UI - infrastructure - zone detail - network service providers - VPC Virtual Router - Instances tab - detailView - add Reboot action.
This commit is contained in:
parent
a5f979355b
commit
a1143acf85
@ -2543,7 +2543,43 @@
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
restart: {
|
||||
label: 'label.action.reboot.router',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'message.action.reboot.router';
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'label.action.reboot.router';
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL('rebootRouter&id=' + args.context.routers[0].id),
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var jid = json.rebootrouterresponse.jobid;
|
||||
args.response.success({
|
||||
_custom: {
|
||||
jobId: jid,
|
||||
getUpdatedItem: function(json) {
|
||||
return json.queryasyncjobresultresponse.jobresult.domainrouter;
|
||||
},
|
||||
getActionFilter: function() {
|
||||
return routerActionfilter;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
},
|
||||
|
||||
changeService: {
|
||||
label: 'label.change.service.offering',
|
||||
@ -4916,8 +4952,7 @@
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
},
|
||||
|
||||
//???
|
||||
|
||||
changeService: {
|
||||
label: 'label.change.service.offering',
|
||||
createForm: {
|
||||
@ -4973,8 +5008,7 @@
|
||||
args.complete();
|
||||
}
|
||||
}
|
||||
},
|
||||
//???
|
||||
},
|
||||
|
||||
migrate: {
|
||||
label: 'label.action.migrate.router',
|
||||
@ -9615,10 +9649,9 @@
|
||||
|
||||
if (jsonObj.state == 'Running') {
|
||||
allowedActions.push("stop");
|
||||
allowedActions.push("restart");
|
||||
|
||||
|
||||
if(jsonObj.vpcid != null)
|
||||
allowedActions.push("changeService");
|
||||
allowedActions.push("restart");
|
||||
|
||||
allowedActions.push("viewConsole");
|
||||
if (isAdmin())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user