Skip to content

Commit 310e3aa

Browse files
committed
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 <1079143+vitormattos@users.noreply.github.com>
1 parent 0b43d58 commit 310e3aa

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
@@ -51,12 +51,20 @@
5151
:name="t('libresign', 'There are no documents')"
5252
:description="canRequestSign ? t('libresign', 'Choose the file to request signatures.') : ''">
5353
<template #action>
54-
<RequestPicker />
54+
<RequestPicker v-if="filtersStore.activeChips.length === 0" />
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', 'There are no documents')">
64+
<template #icon>
65+
<FolderIcon />
66+
</template>
67+
</NcEmptyContent>
6068
</template>
6169
</FilesListVirtual>
6270
</NcAppContent>

0 commit comments

Comments
 (0)