1
0

feat: port kanban store to pinia

This commit is contained in:
Dominik Pschenitschni
2022-09-24 12:35:41 +02:00
parent 9f26ae1ee6
commit c35810f28f
7 changed files with 277 additions and 261 deletions

View File

@ -465,6 +465,7 @@ import {colorIsDark} from '@/helpers/color/colorIsDark'
import {useNamespaceStore} from '@/stores/namespaces'
import {useAttachmentStore} from '@/stores/attachments'
import {useTaskStore} from '@/stores/tasks'
import {useKanbanStore} from '@/stores/kanban'
function scrollIntoView(el) {
if (!el) {
@ -748,7 +749,7 @@ export default defineComponent({
},
async changeList(list: IList) {
this.$store.commit('kanban/removeTaskInBucket', this.task)
useKanbanStore().removeTaskInBucket(this.task)
await this.saveTask({
task: {
...this.task,