Skip to content

Commit 65b096e

Browse files
fix: improve empty state message when filters are active
When filters are applied but return no results, the empty state now displays 'No documents found' without the request button or 'Choose the file to request signatures' text. This provides better UX by distinguishing between: - No documents in the system (shows request button) - Filters with no matches (shows only message) Signed-off-by: Vitor Mattos <[email protected]>
1 parent 4426ae0 commit 65b096e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/views/FilesList/FilesList.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,21 @@
5050
v-else-if="!loading && isEmptyDir && filtersStore.activeChips.length === 0"
5151
:name="t('libresign', 'There are no documents')"
5252
:description="canRequestSign ? t('libresign', 'Choose the file to request signatures.') : ''">
53-
<template #action>
53+
<template v-if="canRequestSign" #action>
5454
<RequestPicker />
5555
</template>
5656
<template #icon>
5757
<FolderIcon />
5858
</template>
5959
</NcEmptyContent>
60+
61+
<NcEmptyContent
62+
v-else-if="!loading && isEmptyDir && filtersStore.activeChips.length > 0"
63+
:name="t('libresign', 'No documents found')">
64+
<template #icon>
65+
<FolderIcon />
66+
</template>
67+
</NcEmptyContent>
6068
</template>
6169
</FilesListVirtual>
6270
</NcAppContent>

0 commit comments

Comments
 (0)