diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index 16584537905..da647877f27 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -11871,12 +11871,14 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it } .add .icon, -.addNew .icon { +.addNew .icon, +.assignVm .icon { background-position: -37px -61px; } .add:hover .icon, -.addNew:hover .icon { +.addNew:hover .icon, +.assignVm:hover .icon { background-position: -37px -643px; } diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 7778a2d0d6b..50fa5db708b 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -437,9 +437,24 @@ detailView: { name: 'Internal Lb details', actions: { - //assignVm: { - - //} + assignVm: { + label: 'Assign VMs to LB', + messages: { + notification: function(args) { return 'Assign VM to internal LB rule'; } + }, + listView: $.extend(true, {}, cloudStack.sections.instances.listView, { + type: 'checkbox', + filters: false + }), + action: function(args) { + args.response.success(); + }, + notification: { + poll: function(args) { + args.complete(); + } + } + } }, tabs: { details: {