feat: save current list view just once

This commit is contained in:
Dominik Pschenitschni 2021-11-14 21:34:34 +01:00
parent 7eed0628d0
commit 29a9335844
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
5 changed files with 6 additions and 28 deletions

View file

@ -66,7 +66,6 @@
<script setup>
import { ref, computed } from 'vue'
import { useRoute } from 'vue-router'
import flatPickr from 'vue-flatpickr-component'
import { i18n } from '@/i18n'
@ -76,13 +75,6 @@ import ListWrapper from './ListWrapper'
import GanttChart from '@/components/tasks/gantt-component'
import Fancycheckbox from '@/components/input/fancycheckbox'
import {saveListView} from '@/helpers/saveListView'
const route = useRoute()
// Save the current list view to local storage
// We use local storage and not vuex here to make it persistent across reloads.
saveListView(route.params.listId, route.name)
const showTaskswithoutDates = ref(false)
const dayWidth = ref(35)
const dateFrom = ref(new Date((new Date()).setDate((new Date()).getDate() - 15)))