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