From 4985e57f302aec0a093548842a64b2c7d7b5ede5 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 29 Mar 2019 12:13:26 +0530 Subject: [PATCH] ui: use executable template filter for users (#3214) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: When reinstalling a VM, the UI only shows featured templates and not all possible list of allowed templates. Root Cause: The list of templates for reinstall used featured as filter in ‘listTemplates’ API which did not include all available options. Solution: The issue is fixed by using the executable template filter of the ‘listTemplates’ API to list all possible templates that a user is allowed to use to deploy a VM. --- ui/scripts/instances.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index b00644793d6..57a060f7321 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1137,7 +1137,7 @@ label: 'label.select.a.template', select: function(args) { var data = { - templatefilter: 'featured' + templatefilter: 'executable' }; $.ajax({ url: createURL('listTemplates'),