mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	fix: disabled column sort during loadings
This commit is contained in:
		| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user