cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ro...@apache.org
Subject [cloudstack] branch master updated: ui: don't ignore project when listing templates (#3233)
Date Tue, 09 Apr 2019 11:10:49 GMT
This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new 1af5ded  ui: don't ignore project when listing templates (#3233)
1af5ded is described below

commit 1af5dedfb18e6135e8f8e017faf033b3f8a26d78
Author: Rohit Yadav <rohit@apache.org>
AuthorDate: Tue Apr 9 16:40:38 2019 +0530

    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 96660fa..a051b2e 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'
                                         });


Mime
View raw message