Import inventaire: format date when needed
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
let error = ref(null);
|
||||
|
||||
const pageTotal = computed(() => {
|
||||
let countValue = (data.value !== null) ? data.value['count'] : 0;
|
||||
const countValue = (data.value !== null) ? data.value['count'] : 0;
|
||||
return Math.ceil(countValue / limit);
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
function fetchData(searchTerm, authorId) {
|
||||
if (searchTerm != null) {
|
||||
let lang = navigator.language.substring(0,2);
|
||||
const lang = navigator.language.substring(0,2);
|
||||
getSearchBooks(data, error, searchTerm, lang, limit, offset.value);
|
||||
} else if (authorId != null) {
|
||||
getAuthorBooks(data, error, authorId, limit, offset.value);
|
||||
|
||||
Reference in New Issue
Block a user