Skip to content

Commit

Permalink
Remove disabled for applyFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
tnaccarato committed Aug 12, 2024
1 parent 42f200c commit 41427d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions vis_phewas/static/mainapp/js/FilterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ export class FilterManager {
// Method to update button states
updateButtonStates = () => {
const addFilterButton = document.querySelector(".addFilter");
const applyFiltersButton = document.querySelector(".applyFilters");

addFilterButton.disabled = this.filterCount >= 8;

applyFiltersButton.disabled = this.filterCount === 0;
};

// Method to push filters to the filters array
Expand Down
2 changes: 1 addition & 1 deletion vis_phewas/templates/mainapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<button class="button btn btn-danger clearFilters" onclick="clearFilters()">
Clear Filters
</button>
<button class="button btn btn-success applyFilters" onclick="applyFilters()" disabled>
<button class="button btn btn-success applyFilters" onclick="applyFilters()">
Apply Filters
</button>
<button class="button btn btn-info exportQuery" style="color: white" onclick="exportQuery()">
Expand Down

0 comments on commit 41427d2

Please sign in to comment.