0
0
Fork 0

Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7828-makeCorrectCalls

This commit is contained in:
Jorge Penadés 2024-09-12 13:11:11 +02:00
commit adb9cac360
4 changed files with 18 additions and 10 deletions

View File

@ -369,7 +369,7 @@ function handleOnDataSaved(_) {
@on-fetch="(...args) => emit('onFetch', ...args)"
:search-url="searchUrl"
:disable-infinite-scroll="
$attrs['disableInfiniteScroll'] ? isTableMode : disableInfiniteScroll
$attrs['disableInfiniteScroll'] ? isTableMode : !disableInfiniteScroll
"
@save-changes="reload"
:has-sub-toolbar="$props.hasSubToolbar ?? isEditable"

View File

@ -224,20 +224,27 @@ defineExpose({ fetch, addFilter, paginate });
v-bind="$attrs"
>
<slot name="body" :rows="store.data"></slot>
<div v-if="isLoading" class="info-row q-pa-md text-center">
<div v-if="isLoading" class="spinner info-row q-pa-md text-center">
<QSpinner color="primary" size="md" />
</div>
</QInfiniteScroll>
</template>
<style lang="scss" scoped>
.info-row {
width: 100%;
h5 {
margin: 0;
.spinner {
z-index: 1;
align-content: end;
position: absolute;
bottom: 0;
left: 0;
}
.info-row {
width: 100%;
h5 {
margin: 0;
}
}
}
</style>
<i18n>

View File

@ -151,6 +151,7 @@ const setShippedColor = (date) => {
:disable-option="{ card: true, table: true }"
limit="5"
class="full-width"
:disable-infinite-scroll="true"
>
<template #column-nickname="{ row }">
<span class="link">

View File

@ -153,7 +153,7 @@ onMounted(async () => {
:label="t('params.state')"
v-model="params.state"
:options="stateOptions"
option-value="code"
option-value="id"
option-label="name"
@update:model-value="searchFn()"
dense
@ -169,7 +169,7 @@ onMounted(async () => {
:label="t('params.futureState')"
v-model="params.futureState"
:options="stateOptions"
option-value="code"
option-value="id"
option-label="name"
@update:model-value="searchFn()"
dense