From 1af5dedfb18e6135e8f8e017faf033b3f8a26d78 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Tue, 9 Apr 2019 16:40:38 +0530 Subject: [PATCH] ui: don't ignore project when listing templates (#3233) Problem: When uploading template or iso in a project, the progress is not seen Root Cause: When users upload a template/iso in project view, the template/iso is not visible in the all filter. This creates confusion that template/iso has not been uploaded. Solution: Since the api listtemplates with a projectid acts is a superset of list templates without a project id, we should not ignore the project id when listing templates in all filter. --- ui/scripts/templates.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 96660fac680..a051b2efefb 100755 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -1038,7 +1038,6 @@ } switch (args.filterBy.kind) { case "all": - ignoreProject = true; $.extend(data, { templatefilter: 'all' }); @@ -2383,7 +2382,6 @@ } switch (args.filterBy.kind) { case "all": - ignoreProject = true; $.extend(data, { isofilter: 'all' });