mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Merge remote-tracking branch 'remotes/origin/scale-UP'
This commit is contained in:
commit
ae4befb0b9
@ -11796,7 +11796,8 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
|
|||||||
background-position: -168px -31px;
|
background-position: -168px -31px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reset .icon {
|
.reset .icon ,
|
||||||
|
.scaleUp .icon{
|
||||||
background-position: -168px -31px;
|
background-position: -168px -31px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11805,7 +11806,8 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
|
|||||||
background-position: -168px -613px;
|
background-position: -168px -613px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reset:hover .icon {
|
.reset:hover .icon,
|
||||||
|
.scaleUp:hover .icon {
|
||||||
background-position: -168px -613px;
|
background-position: -168px -613px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1080,6 +1080,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: {
|
viewConsole: {
|
||||||
label: 'label.view.console',
|
label: 'label.view.console',
|
||||||
action: {
|
action: {
|
||||||
@ -1337,6 +1375,7 @@
|
|||||||
allowedActions.push("destroy");
|
allowedActions.push("destroy");
|
||||||
allowedActions.push("changeService");
|
allowedActions.push("changeService");
|
||||||
allowedActions.push("reset");
|
allowedActions.push("reset");
|
||||||
|
allowedActions.push("scaleUp");
|
||||||
|
|
||||||
if (isAdmin())
|
if (isAdmin())
|
||||||
allowedActions.push("migrate");
|
allowedActions.push("migrate");
|
||||||
@ -1360,6 +1399,8 @@
|
|||||||
allowedActions.push("destroy");
|
allowedActions.push("destroy");
|
||||||
allowedActions.push("reset");
|
allowedActions.push("reset");
|
||||||
allowedActions.push("snapshot");
|
allowedActions.push("snapshot");
|
||||||
|
allowedActions.push("scaleUp");
|
||||||
|
|
||||||
if(isAdmin())
|
if(isAdmin())
|
||||||
allowedActions.push("migrateToAnotherStorage");
|
allowedActions.push("migrateToAnotherStorage");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user