diff --git a/README.md b/README.md index 1e88cb4..edab97d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ python3 -m venv .ve source .ve/bin/activate pip install -r requirements.txt -pip install -r dev-requirements.txt # if developing +pip install -r requirements_dev.txt # if developing Install postgres (Insights is tested in postgres 12) sudo -u postgres createuser -P -e --interactive diff --git a/insights/static/js/data-display.js b/insights/static/js/data-display.js index 7c2da75..75e5418 100644 --- a/insights/static/js/data-display.js +++ b/insights/static/js/data-display.js @@ -122,6 +122,11 @@ var app = new Vue({ this.currentApiUrl.searchParams.delete(id); this.updateData(`/search${this.currentApiUrl.search}`); }, + + clearAllFilters(){ + this.currentApiUrl = new URL(window.location.origin + window.location.pathname); + this.updateData("/search"); + }, }, computed: { filtersApplied(){ diff --git a/insights/templates/data-display.vue.j2 b/insights/templates/data-display.vue.j2 index 99fe55c..75eed24 100644 --- a/insights/templates/data-display.vue.j2 +++ b/insights/templates/data-display.vue.j2 @@ -148,7 +148,12 @@
-

Dataset Filters

+

+ Dataset Filters + + (Clear all) + +