1
0

feat: move list store to pina (#2392)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2392
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni
2022-09-21 16:21:25 +00:00
committed by konrad
parent f85a08afb4
commit a38075f376
23 changed files with 272 additions and 239 deletions

View File

@ -148,6 +148,7 @@
<script lang="ts">
import {defineComponent} from 'vue'
import { useListStore } from '@/stores/lists'
export default defineComponent({
name: 'user-settings-general',
@ -246,8 +247,9 @@ watch(
{immediate: true},
)
const listStore = useListStore()
const defaultList = computed({
get: () => store.getters['lists/getListById'](settings.value.defaultListId),
get: () => listStore.getListById(settings.value.defaultListId),
set(l) {
settings.value.defaultListId = l ? l.id : DEFAULT_LIST_ID
},