Skip to content

Commit

Permalink
feat: no table results message
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Apr 27, 2023
1 parent 74c136f commit 19859f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/renderer/components/WorkspaceTabTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@
/>
<div class="workspace-query-results p-relative column col-12">
<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
v-if="results"
ref="queryTable"
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/i18n/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ export const enUS = {
showTableSize: 'Show table size in sidebar',
showTableSizeDescription: 'MySQL/MariaDB only. Enable this option may affects performance on schema with many tables.',
searchForSchemas: 'Search for schemas',
switchSearchMethod: 'Switch search method'
switchSearchMethod: 'Switch search method',
noResultsPresent: 'No results present'
},
faker: {
address: 'Address',
Expand Down

0 comments on commit 19859f4

Please sign in to comment.