Skip to content

Commit 42a549e

Browse files
author
Jessica Wang
committed
CLOUDSTACK-747: UI - Internal LB detailView - Assigned VMs tab - Assign VMs action - exclude assigned VMs from custom listView dialog.
1 parent 21a6271 commit 42a549e

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

ui/scripts/vpc.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,19 @@
654654
).length ? true : false;
655655
});
656656

657+
//remove assigned VMs (i.e. instance._isSelected == true)
658+
var items = [];
659+
if(instances != null) {
660+
for(var i = 0; i < instances.length; i++) {
661+
if(instances[i]._isSelected = true)
662+
continue;
663+
else
664+
items.push(instances[i]);
665+
}
666+
}
667+
657668
args.response.success({
658-
data: instances
669+
data: items
659670
});
660671
}
661672
});

0 commit comments

Comments
 (0)