Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions front/src/components/ApplicationFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default {
return categories;
},
categoriesDisabled() {
return !!this.search || !!this.selectedNamespaces.length;
return !!this.search;
},
namespaces() {
const map = {};
Expand Down Expand Up @@ -191,8 +191,12 @@ export default {
if (search) {
return a.id.includes(search) || (a.type && a.type.name.includes(search)) || (a.cluster && a.cluster.includes(search));
}
if (selectedNamespaces.size) {
return selectedNamespaces.has(this.$utils.appId(a.id).ns);
// Categories apply inside a selected namespace too: a tenant's
// handoff lands on its namespace, where one-off platform Jobs
// (dumps, restores, builds; the hidden platform-jobs category)
// used to list as applications.
if (selectedNamespaces.size && !selectedNamespaces.has(this.$utils.appId(a.id).ns)) {
return false;
}
return selectedCategories.has(a.category);
});
Expand Down
Loading