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:
parent
1801bef019
commit
7570b0add8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user