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.
This commit is contained in:
Rohit Yadav 2019-04-09 16:40:38 +05:30 committed by GitHub
parent ac6c84ec25
commit 1af5dedfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
});