Skip to content

Commit

Permalink
ui: don't ignore project when listing templates (apache#3233)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rohityadavcloud authored and Philipp Bankonier committed Apr 24, 2019
1 parent 1936a07 commit d8b9db4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ui/scripts/templates.js
Expand Up @@ -1038,7 +1038,6 @@
}
switch (args.filterBy.kind) {
case "all":
ignoreProject = true;
$.extend(data, {
templatefilter: 'all'
});
Expand Down Expand Up @@ -2383,7 +2382,6 @@
}
switch (args.filterBy.kind) {
case "all":
ignoreProject = true;
$.extend(data, {
isofilter: 'all'
});
Expand Down

0 comments on commit d8b9db4

Please sign in to comment.