1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-16 11:41:25 +01:00

fix: disabled column sort during loadings

This commit is contained in:
Fabio Di Stasio 2024-08-05 18:02:24 +02:00
parent c434855879
commit 72bacdeabf
3 changed files with 4 additions and 1 deletions

View File

@ -253,6 +253,7 @@
v-if="results"
v-show="!isQuering"
ref="queryTable"
:is-quering="isQuering"
:results="results"
:tab-uid="tab.uid"
:conn-uid="connection.uid"

View File

@ -291,6 +291,7 @@ const { consoleHeight } = storeToRefs(consoleStore);
const props = defineProps({
results: Array as Prop<QueryResult[]>,
connUid: String,
isQuering: Boolean,
mode: String as Prop<'table' | 'query'>,
page: {
type: Number,
@ -790,7 +791,7 @@ const contextMenu = (event: MouseEvent, cell: any) => {
};
const sort = (field: TableField) => {
if (!isSortable.value) return;
if (!isSortable.value || props.isQuering) return;
selectedRows.value = [];
let fieldName = field.name;

View File

@ -202,6 +202,7 @@
v-if="results"
ref="queryTable"
:results="results"
:is-quering="isQuering"
:page="page"
:tab-uid="tabUid"
:conn-uid="connection.uid"