diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index bc33472d..5ed2fa1b 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -61,7 +61,6 @@ import TeamModel from '@/models/team' import {CURRENT_LIST, LOADING, LOADING_MODULE, QUICK_ACTIONS_ACTIVE} from '@/store/mutation-types' import ListModel from '@/models/list' -import createTask from '@/components/tasks/mixins/createTask' import QuickAddMagic from '@/components/tasks/partials/quick-add-magic.vue' import {getHistory} from '../../modules/listHistory' @@ -97,9 +96,6 @@ export default { teamService: new TeamService(), } }, - mixins: [ - createTask, - ], computed: { active() { const active = this.$store.state[QUICK_ACTIONS_ACTIVE] @@ -387,7 +383,10 @@ export default { return } - this.createNewTask(this.query, 0, this.currentList.id) + this.$store.dispatch('tasks/createNewTask', { + title: this.query, + listId: this.currentList.id, + }) .then(r => { this.$message.success({message: this.$t('task.createSuccess')}) this.$router.push({name: 'task.detail', params: {id: r.id}}) diff --git a/src/components/tasks/add-task.vue b/src/components/tasks/add-task.vue index 3688d7bc..7802f05c 100644 --- a/src/components/tasks/add-task.vue +++ b/src/components/tasks/add-task.vue @@ -38,7 +38,6 @@