diff --git a/assets/components/container/container.vue b/assets/components/container/container.vue
index a5d9c1bb..ef97292d 100644
--- a/assets/components/container/container.vue
+++ b/assets/components/container/container.vue
@@ -10,15 +10,24 @@
showSidebar = state"
+ @toggle-sidebar="(state) => toggleSidebar(state)"
+ @show-filters="(state) => toggleFilters(state)"
/>
-
+ toggleSidebar(state)"
+ @show-filters="(state) => toggleFilters(state)"
+ />
+
+
@@ -26,11 +35,17 @@
import Warning from './warning.vue';
import Header from '../header/header.vue';
import Sidebar from '../sidebar/sidebar.vue';
+import Filters from './filters.vue';
function toggleSidebar(state) {
this.showSidebar = typeof state === 'boolean' ? state : !this.showSidebar;
}
+function toggleFilters(state) {
+ this.showFilters = state;
+ this.showSidebar = false;
+}
+
async function setConsent(consent) {
if (consent) {
this.showWarning = false;
@@ -61,17 +76,20 @@ export default {
Header,
Sidebar,
Warning,
+ Filters,
},
data() {
return {
showSidebar: false,
showWarning: localStorage.getItem('consent') !== window.env.sessionId,
+ showFilters: false,
};
},
mounted,
beforeUnmount,
methods: {
toggleSidebar,
+ toggleFilters,
setConsent,
blur,
resize,
diff --git a/assets/components/header/filters.vue b/assets/components/container/filters.vue
similarity index 100%
rename from assets/components/header/filters.vue
rename to assets/components/container/filters.vue
diff --git a/assets/components/header/header.vue b/assets/components/header/header.vue
index d3ea6d4a..3d8a54fd 100644
--- a/assets/components/header/header.vue
+++ b/assets/components/header/header.vue
@@ -31,7 +31,7 @@