Fixed author or publisher not selectable when in another language than english
This commit is contained in:
parent
d36ecb0ada
commit
6ab5cf5837
|
@ -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' })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue