mirror of https://github.com/apache/cloudstack.git
scale UP CPU and memory UI
This commit is contained in:
parent
82c2e3052e
commit
b091ea6ead
|
|
@ -11277,7 +11277,8 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
|
|||
background-position: -168px -31px;
|
||||
}
|
||||
|
||||
.reset .icon {
|
||||
.reset .icon ,
|
||||
.scaleUp .icon{
|
||||
background-position: -168px -31px;
|
||||
}
|
||||
|
||||
|
|
@ -11286,7 +11287,8 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
|
|||
background-position: -168px -613px;
|
||||
}
|
||||
|
||||
.reset:hover .icon {
|
||||
.reset:hover .icon,
|
||||
.scaleUp:hover .icon {
|
||||
background-position: -168px -613px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1240,6 +1240,44 @@
|
|||
}
|
||||
},
|
||||
|
||||
scaleUp:{
|
||||
label:'scaleUp VM',
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("scaleVirtualMachine&id=" + args.context.instances[0].id),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var jid = json.scaleupvirtualmachineresponse.jobid;
|
||||
args.response.success(
|
||||
{_custom:
|
||||
{jobId: jid,
|
||||
getUpdatedItem: function(json) {
|
||||
return json.queryasyncjobresultresponse.jobresult.virtualmachine;
|
||||
},
|
||||
getActionFilter: function() {
|
||||
return vmActionfilter;
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'Do you really want to scale Up your instance ?';
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'Instance Scaled Up';
|
||||
}
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
viewConsole: {
|
||||
label: 'label.view.console',
|
||||
action: {
|
||||
|
|
@ -1488,6 +1526,7 @@
|
|||
allowedActions.push("destroy");
|
||||
allowedActions.push("changeService");
|
||||
allowedActions.push("reset");
|
||||
allowedactions.push("scaleUp");
|
||||
|
||||
if (isAdmin())
|
||||
allowedActions.push("migrate");
|
||||
|
|
@ -1511,6 +1550,8 @@
|
|||
allowedActions.push("destroy");
|
||||
allowedActions.push("reset");
|
||||
allowedActions.push("snapshot");
|
||||
allowedActions.push("scaleUp");
|
||||
|
||||
if(isAdmin())
|
||||
allowedActions.push("migrateToAnotherStorage");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue