1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

perf: avoid to load schema elements if already loaded in export modal

This commit is contained in:
2021-11-01 14:52:45 +01:00
parent 9e9de7b5c5
commit d9d3bf2bc9
4 changed files with 23 additions and 16 deletions

View File

@ -48,11 +48,16 @@
</div>
<div class="column col-auto col-ml-auto ">
<button class="btn btn-dark btn-sm" @click="refresh">
<button
class="btn btn-dark btn-sm"
:title="$t('word.refresh')"
@click="refresh"
>
<i class="mdi mdi-database-refresh" />
</button>
<button
class="btn btn-dark btn-sm"
:title="$t('message.uncheckAllTables')"
:disabled="isRefreshing"
@click="uncheckAllTables"
>
@ -60,6 +65,7 @@
</button>
<button
class="btn btn-dark btn-sm"
:title="$t('message.checkAllTables')"
:disabled="isRefreshing"
@click="checkAllTables"
>
@ -258,8 +264,10 @@ export default {
}
},
async created () {
await this.refresh();
if (!this.schemaItems.length) await this.refresh();
window.addEventListener('keydown', this.onKey);
this.basePath = await Application.getDownloadPathDirectory();
this.tables = this.schemaItems.map(item => ({
table: item.name,