Skip to content

Commit

Permalink
Merge branch 'fix-team-filter-ui' of 'https://github.com/evamillan/gr…
Browse files Browse the repository at this point in the history
  • Loading branch information
sduenas authored Jul 11, 2023
2 parents 968b7ba + b13b78f commit 94d74aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions releases/unreleased/show-organizations-members.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Show an organization's members
category: fixed
author: Eva Millan <evamillan@bitergia.com>
issue: null
notes: >
Repeatedly clicking on the button to see the members
of an organization or team on the table sometimes
showed the full individuals list.
3 changes: 2 additions & 1 deletion ui/src/components/IndividualsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,11 @@ export default {
this.$logger.error(`Error updating enrollment: ${error}`, data);
}
},
filterSearch(filters, orderBy) {
filterSearch(filters, orderBy, inputValue) {
this.filters = filters;
this.orderBy = orderBy;
this.queryIndividuals(1);
this.$emit("setFilters", inputValue);
},
selectAll(value) {
this.individuals.forEach((individual) => (individual.isSelected = value));
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default {
this.parseFilters();
if (this.errorMessage) return;
const order = this.getOrder();
this.$emit("search", this.filters, order);
this.$emit("search", this.filters, order, this.inputValue);
},
parseFilters() {
const terms = [];
Expand Down Expand Up @@ -288,7 +288,7 @@ export default {
this.inputValue = "";
this.filters = {};
this.errorMessage = undefined;
this.$emit("search", {}, order);
this.$emit("search", {}, order, "");
},
isBooleanFilter(filter) {
const validFilter = this.validFilters.find(
Expand Down
3 changes: 2 additions & 1 deletion ui/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
:update-enrollment="updateEnrollment"
:recommend-matches="recommendMatches"
@saveIndividuals="addSavedIndividuals"
@setFilters="filters = $event"
@updateOrganizations="updateOrganizations"
@updateWorkspace="updateWorkspace"
@highlight="highlightIndividual($event, 'highlightInWorkspace', true)"
Expand Down Expand Up @@ -319,7 +320,7 @@ export default {
newFilters = newFilters.concat(` enrollmentParentOrg:"${parentOrg}"`);
}
if (this.filters === newFilters) {
this.filters = "";
this.$refs.table.queryIndividuals();
}
this.$nextTick(() => (this.filters = newFilters));
},
Expand Down

0 comments on commit 94d74aa

Please sign in to comment.