Improve input title for add book to collection widget
This commit is contained in:
@@ -43,7 +43,6 @@ function addBook(bookId) {
|
|||||||
emit('created')
|
emit('created')
|
||||||
} else {
|
} else {
|
||||||
res.json().then((json) => {
|
res.json().then((json) => {
|
||||||
console.log(json)
|
|
||||||
error.value = json
|
error.value = json
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -61,7 +60,7 @@ function addBook(bookId) {
|
|||||||
type="text"
|
type="text"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
v-model="book.title"
|
v-model="book.title"
|
||||||
:placeholder="$t('addbook.title')"
|
:placeholder="$t('inputbookwidget.searchinput')"
|
||||||
/>
|
/>
|
||||||
<p v-if="titleError" class="help is-danger">{{ titleError }}</p>
|
<p v-if="titleError" class="help is-danger">{{ titleError }}</p>
|
||||||
<ul v-if="data" class="popupresults has-background-dark">
|
<ul v-if="data" class="popupresults has-background-dark">
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"submit": "Submit",
|
"submit": "Submit",
|
||||||
"coverupload": "Upload cover"
|
"coverupload": "Upload cover"
|
||||||
},
|
},
|
||||||
|
"inputbookwidget": {
|
||||||
|
"searchinput": "Book title to add..."
|
||||||
|
},
|
||||||
"signup": {
|
"signup": {
|
||||||
"title": "Sign up",
|
"title": "Sign up",
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
|
|||||||
@@ -26,6 +26,9 @@
|
|||||||
"submit": "Confirmer",
|
"submit": "Confirmer",
|
||||||
"coverupload": "Téléverser la couverture"
|
"coverupload": "Téléverser la couverture"
|
||||||
},
|
},
|
||||||
|
"inputbookwidget": {
|
||||||
|
"searchinput": "Titre du livre à ajouter..."
|
||||||
|
},
|
||||||
"signup": {
|
"signup": {
|
||||||
"title": "Inscription",
|
"title": "Inscription",
|
||||||
"username": "Nom d'utilisateur",
|
"username": "Nom d'utilisateur",
|
||||||
|
|||||||
Reference in New Issue
Block a user