1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-12 17:51:02 +01:00

fix: avoid to trigger schema loading multiple times

This commit is contained in:
Fabio Di Stasio 2021-07-06 09:36:35 +02:00
parent 1801bef019
commit 7570b0add8

View File

@ -23,6 +23,7 @@
@contextmenu.prevent="showTableContext($event, table)"
>
<a class="table-name">
<!-- <div class="icon loading" /> -->
<i class="table-icon mdi mdi-18px mr-1" :class="table.type === 'view' ? 'mdi-table-eye' : 'mdi-table'" />
<span v-html="highlightWord(table.name)" />
</a>
@ -251,7 +252,7 @@ export default {
}),
formatBytes,
async selectSchema (schema) {
if (!this.loadedSchemas.has(schema)) {
if (!this.loadedSchemas.has(schema) && !this.isLoading) {
this.isLoading = true;
await this.refreshSchema({ uid: this.connection.uid, schema });
this.isLoading = false;