Skip to content
Snippets Groups Projects
Commit e1b12ef8 authored by Marek Trtik's avatar Marek Trtik
Browse files

Added toogle of filters icon.

parent bde4badf
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,8 @@
<!-- <Filters /> -->
<div class="top-bar">
<h1 style="margin-top: auto; margin-bottom: auto;">ANTARSTICK</h1>
<filter-icon class="icon" />
<filter-icon class="icon" v-if="filtersAreHidden" @click="onToggleShowFilters" />
<filter-off-icon class="icon" v-else @click="onToggleShowFilters" />
<map-legend-icon class="icon" />
<content-save-icon
class="icon"
......@@ -25,6 +26,7 @@ import Filters from '@/components/header/Filters.vue'
import ContentSaveIcon from 'icons/ContentSave'
import FilterIcon from 'icons/Filter'
import FilterOffIcon from 'icons/FilterOff'
import MapLegendIcon from 'icons/MapLegend'
export default {
......@@ -36,8 +38,14 @@ export default {
ContentSaveIcon,
FilterIcon,
FilterOffIcon,
MapLegendIcon
},
data() {
return {
filtersAreHidden: true
}
},
computed: {
pendingPostRequestsCount() {
return this.$store.getters.pendingPostRequestsCount
......@@ -49,6 +57,9 @@ export default {
methods: {
commitChangesToDisk() {
this.$store.dispatch('commitChangesToDisk')
},
onToggleShowFilters() {
this.filtersAreHidden = !this.filtersAreHidden
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment