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:
parent
c434855879
commit
72bacdeabf
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -202,6 +202,7 @@
|
||||
v-if="results"
|
||||
ref="queryTable"
|
||||
:results="results"
|
||||
:is-quering="isQuering"
|
||||
:page="page"
|
||||
:tab-uid="tabUid"
|
||||
:conn-uid="connection.uid"
|
||||
|
Loading…
x
Reference in New Issue
Block a user