feat: no table results message

This commit is contained in:
Fabio Di Stasio 2023-04-27 18:11:36 +02:00
parent 74c136f833
commit 19859f45f4
2 changed files with 10 additions and 1 deletions

View File

@ -145,6 +145,14 @@
/> />
<div class="workspace-query-results p-relative column col-12"> <div class="workspace-query-results p-relative column col-12">
<BaseLoader v-if="isQuering" /> <BaseLoader v-if="isQuering" />
<div v-if="!isQuering && !results[0]?.rows.length" class="empty">
<div class="empty-icon">
<i class="mdi mdi-48px mdi-island" />
</div>
<p class="h4 empty-subtitle">
{{ t('message.noResultsPresent') }}
</p>
</div>
<WorkspaceTabQueryTable <WorkspaceTabQueryTable
v-if="results" v-if="results"
ref="queryTable" ref="queryTable"

View File

@ -339,7 +339,8 @@ export const enUS = {
showTableSize: 'Show table size in sidebar', showTableSize: 'Show table size in sidebar',
showTableSizeDescription: 'MySQL/MariaDB only. Enable this option may affects performance on schema with many tables.', showTableSizeDescription: 'MySQL/MariaDB only. Enable this option may affects performance on schema with many tables.',
searchForSchemas: 'Search for schemas', searchForSchemas: 'Search for schemas',
switchSearchMethod: 'Switch search method' switchSearchMethod: 'Switch search method',
noResultsPresent: 'No results present'
}, },
faker: { faker: {
address: 'Address', address: 'Address',