Fixed author or publisher not selectable when in another language than english

This commit is contained in:
konrad 2017-11-24 10:46:56 +01:00 committed by kolaente
parent d36ecb0ada
commit 6ab5cf5837
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 8 additions and 5 deletions

View File

@ -33,7 +33,7 @@
<multiselect
v-model="book.PublisherFull"
track-by="ID"
:label="langGeneral.name"
label="Name"
:placeholder="langGeneral.selectOne"
:options="publishers"
:searchable="true"
@ -52,7 +52,7 @@
<multiselect
v-model="book.Authors"
track-by="ID"
:label="langGeneral.name"
label="Name"
:placeholder="langGeneral.selectOneOrMore"
:options="authors"
:searchable="true"
@ -281,6 +281,9 @@
title: this.translate('general').success,
text: this.translate('books').updatedSuccess
})
// Redirect to books list
router.push({ name: 'books' })
})
.catch(e => {
this.loading = false
@ -296,15 +299,15 @@
title: this.translate('general').success,
text: this.translate('books').insertedSuccess
})
// Redirect to books list
router.push({ name: 'books' })
})
.catch(e => {
this.loading = false
this.errorNotification(e)
})
}
// Redirect to books list
router.push({ name: 'books' })
}
}
}