From 900de144e120b8b60faa1039b4b22ac636fefa78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 19 May 2016 15:55:01 +0200 Subject: [PATCH] Bug #4350: Filter out VR templates in cloud view --- .../public/app/tabs/provision-tab/templates/list.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sunstone/public/app/tabs/provision-tab/templates/list.js b/src/sunstone/public/app/tabs/provision-tab/templates/list.js index 7d2b2e435c..5e0db13cba 100644 --- a/src/sunstone/public/app/tabs/provision-tab/templates/list.js +++ b/src/sunstone/public/app/tabs/provision-tab/templates/list.js @@ -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('
'+ ''+