fix: create multiple tasks at once with multiline input now correctly uses the titles per line
This commit is contained in:
@ -100,7 +100,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const task = await this.$store.dispatch('tasks/createNewTask', {
|
const task = await this.$store.dispatch('tasks/createNewTask', {
|
||||||
title: this.newTaskTitle,
|
title,
|
||||||
listId: this.$store.state.auth.settings.defaultListId,
|
listId: this.$store.state.auth.settings.defaultListId,
|
||||||
position: this.defaultPosition,
|
position: this.defaultPosition,
|
||||||
})
|
})
|
||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
await Promise.all(newTasks)
|
await Promise.all(newTasks)
|
||||||
this.newTaskTitle = ''
|
this.newTaskTitle = ''
|
||||||
} catch(e) {
|
} catch (e) {
|
||||||
if (e.message === 'NO_LIST') {
|
if (e.message === 'NO_LIST') {
|
||||||
this.errorMessage = this.$t('list.create.addListRequired')
|
this.errorMessage = this.$t('list.create.addListRequired')
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user