Skip to content

Commit c6c8538

Browse files
committed
VPC: Use listView selector for assignVm action
1 parent dfa93b5 commit c6c8538

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

ui/css/cloudstack3.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11871,12 +11871,14 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
1187111871
}
1187211872

1187311873
.add .icon,
11874-
.addNew .icon {
11874+
.addNew .icon,
11875+
.assignVm .icon {
1187511876
background-position: -37px -61px;
1187611877
}
1187711878

1187811879
.add:hover .icon,
11879-
.addNew:hover .icon {
11880+
.addNew:hover .icon,
11881+
.assignVm:hover .icon {
1188011882
background-position: -37px -643px;
1188111883
}
1188211884

ui/scripts/vpc.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,24 @@
437437
detailView: {
438438
name: 'Internal Lb details',
439439
actions: {
440-
//assignVm: {
441-
442-
//}
440+
assignVm: {
441+
label: 'Assign VMs to LB',
442+
messages: {
443+
notification: function(args) { return 'Assign VM to internal LB rule'; }
444+
},
445+
listView: $.extend(true, {}, cloudStack.sections.instances.listView, {
446+
type: 'checkbox',
447+
filters: false
448+
}),
449+
action: function(args) {
450+
args.response.success();
451+
},
452+
notification: {
453+
poll: function(args) {
454+
args.complete();
455+
}
456+
}
457+
}
443458
},
444459
tabs: {
445460
details: {

0 commit comments

Comments
 (0)