mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: avoid to trigger schema loading multiple times
This commit is contained in:
@ -23,6 +23,7 @@
|
|||||||
@contextmenu.prevent="showTableContext($event, table)"
|
@contextmenu.prevent="showTableContext($event, table)"
|
||||||
>
|
>
|
||||||
<a class="table-name">
|
<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'" />
|
<i class="table-icon mdi mdi-18px mr-1" :class="table.type === 'view' ? 'mdi-table-eye' : 'mdi-table'" />
|
||||||
<span v-html="highlightWord(table.name)" />
|
<span v-html="highlightWord(table.name)" />
|
||||||
</a>
|
</a>
|
||||||
@ -251,7 +252,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
formatBytes,
|
formatBytes,
|
||||||
async selectSchema (schema) {
|
async selectSchema (schema) {
|
||||||
if (!this.loadedSchemas.has(schema)) {
|
if (!this.loadedSchemas.has(schema) && !this.isLoading) {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
await this.refreshSchema({ uid: this.connection.uid, schema });
|
await this.refreshSchema({ uid: this.connection.uid, schema });
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
Reference in New Issue
Block a user