1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

Bug #4350: Filter out VR templates in cloud view

This commit is contained in:
Carlos Martín 2016-05-19 15:55:01 +02:00
parent e05d355598
commit 900de144e1

View File

@ -80,6 +80,12 @@ define(function(require) {
timeout: true,
success: function (request, item_list){
datatable.fnClearTable(true);
item_list = item_list.filter(function(tmpl){
return (tmpl.VMTEMPLATE.TEMPLATE.VROUTER == undefined ||
tmpl.VMTEMPLATE.TEMPLATE.VROUTER.toUpperCase() != "YES");
});
if (item_list.length == 0) {
datatable.html('<div class="text-center">'+
'<span class="fa-stack fa-5x">'+